{"id":83922,"date":"2020-05-11T17:36:25","date_gmt":"2020-05-11T09:36:25","guid":{"rendered":"http:\/\/4563.org\/?p=83922"},"modified":"2020-05-11T17:36:25","modified_gmt":"2020-05-11T09:36:25","slug":"%e6%96%b0%e6%89%8bmacos-swiftui-%e9%bc%a0%e6%a0%87%e6%82%ac%e6%b5%ae%e6%8f%90%e7%a4%ba%e5%ba%94%e8%af%a5%e6%80%8e%e4%b9%88%e5%86%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=83922","title":{"rendered":"[\u65b0\u624b]macOS SwiftUI \u9f20\u6807\u60ac\u6d6e\u63d0\u793a\u5e94\u8be5\u600e\u4e48\u5199"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  [\u65b0\u624b]macOS SwiftUI \u9f20\u6807\u60ac\u6d6e\u63d0\u793a\u5e94\u8be5\u600e\u4e48\u5199               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : smartdone <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8bd5\u4e86<code>onHover<\/code>\uff0c\u53ea\u80fd\u83b7\u53d6\u662f\u5426\u60ac\u6d6e\u7684\u72b6\u6001\uff0c\u73b0\u5728\u60f3\u8981\u8fbe\u5230\u9f20\u6807\u79fb\u52a8\u4e0a\u53bb\u5c31\u663e\u793a\u4e00\u4e2a\u63d0\u793a\u3002\u5173\u4e8e macOS \u5f00\u53d1\u7684\u8d44\u6599\u592a\u5c11\u4e86\uff0c\u5728\u5b98\u65b9\u6587\u6863\u91cc\u9762\u6ca1\u627e\u5230 demo<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1537183\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : toooo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             SwiftUI \u672c\u8eab\u5c31\u662f\u4e2a\u65b0\u4e1c\u897f, \u65b0\u7684\u4e1c\u897f\u5927\u6982\u7387\u6ca1\u90a3\u4e48\u5b8c\u5584, \u4f1a\u6709\u95ee\u9898, \u4e14\u73b0\u5728\u4e3b\u8981\u7cbe\u529b\u80af\u5b9a\u653e\u5728 iOS \u5e73\u53f0\u7684\u95ee\u9898\u89e3\u51b3, \u76f8\u5bf9 macOS \u4e0d\u5b8c\u5584\u7684\u5730\u65b9\u80af\u5b9a\u5f88\u591a.<br \/>\u5c1d\u9c9c\u53ef\u4ee5, \u771f\u8981\u4f5c\u4e3a\u751f\u4ea7\u529b SwiftUI \u7528\u5728 macOS, \u8fd8\u662f\u4e0d\u592a\u5efa\u8bae\u7684, \u4f30\u8ba1\u8981\u8e29\u5f88\u591a\u5751.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1537184\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : smartdone <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @toooo \u6211\u4e5f\u611f\u89c9\uff0c\u5751\u592a\u591a\u4e86\u3002\u53ea\u662f\u89c9\u5f97\u7528\u6765\u5199 UI \u786e\u5b9e\u662f\u65b9\u4fbf\u4e86\u4e0d\u5c11                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1537185\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : discrete <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/stackoverflow.com\/questions\/59129089\/how-do-you-display-a-tooltip-hint-on-hover<\/p>\n<p>Google \u4e00\u4e0b\uff0c\u4f60\u5c31\u77e5\u9053                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1537186\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : smartdone <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @discrete \u611f\u8c22\u611f\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1537187\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lizhuoli <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63a8\u8350\u7528 NSHostingView\uff0c\u76f4\u63a5\u5229\u7528 AppKit API: NSView.tooltip \u5373\u53ef\uff0c\u4e00\u884c\u4ee3\u7801                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1537188\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : minsheng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63a5\u4e0a\uff0c\u4f60\u7528 Catalyst \u7684 UIHoverGestureRecognizer \u4e5f\u5f88\u7b80\u5355\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>[\u65b0\u624b]macOS SwiftUI&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/83922"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=83922"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/83922\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83922"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}