{"id":1039,"date":"2020-12-19T15:29:04","date_gmt":"2020-12-19T06:29:04","guid":{"rendered":"https:\/\/www.typea.info\/blog\/?p=1039"},"modified":"2021-01-23T15:02:57","modified_gmt":"2021-01-23T06:02:57","slug":"swiftui_tutorial_custom_image_view","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2020\/12\/19\/swiftui_tutorial_custom_image_view\/","title":{"rendered":"SwiftUI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3084\u3063\u3066\u307f\u308b &#8211; Custom Image View\u306e\u4f5c\u6210"},"content":{"rendered":"<p>\u00a0<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/SwiftUI-%E5%BE%B9%E5%BA%95%E5%85%A5%E9%96%80-%E9%87%91%E7%94%B0-%E6%B5%A9%E6%98%8E-ebook\/dp\/B082XNM5Q5\/ref=as_li_ss_il?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=swiftui&amp;qid=1608359231&amp;sr=8-3&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=0403908f2cdd4583d3b085d1048ef09a&amp;language=ja_JP\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B082XNM5Q5&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22&amp;language=ja_JP\" border=\"0\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border: none !important; margin: 0px !important;\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B082XNM5Q5\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><\/p>\n<p>\u00a0<\/p>\n<p>XCode\u89e6\u308a\u59cb\u3081\u3066\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2020\/12\/06\/xcode_macos_proguramming\/\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u3068\u3001Playground<\/a>\u00a0\u304b\u3089\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2020\/12\/09\/swiftui_tutorial_youtube_memo\/\">SwiftUI\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u521d\u3081\u3066\u3001\u30ad\u30e3\u30f3\u30d0\u30b9\u3068\u30c6\u30ad\u30b9\u30c8\u3092\u89e6\u3063\u305f<\/a>\u7d9a\u304d\u3067\u3001\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3092\u89e6\u3063\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"https:\/\/developer.apple.com\/tutorials\/swiftui\/creating-and-combining-views\">https:\/\/developer.apple.com\/tutorials\/swiftui\/creating-and-combining-views<\/a><\/p>\n<p>\u753b\u50cf\u3092\u53d6\u308a\u8fbc\u3093\u3067\u3001\u30de\u30b9\u30af\u3001\u67a0\u7dda\u3001\u5f71\u3092\u3064\u3051\u308b\u3002<\/p>\n<p>\u624b\u9806\u306f\u3001\u6587\u7ae0\u3068\u3057\u3066\u30e1\u30e2\u3092\u53d6\u3063\u3066\u304a\u304f\u306e\u304c\u9762\u5012\u306a\u306e\u3067\u3001youtube\u306b\u30e1\u30e2\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/wwLG3OA_wuw\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/p>\n<p>\u00a0<\/p>\n<pre class=\"prettyprint\">import SwiftUI\n\nstruct CircleImage: View {\n    var body: some View {\n        Image(\"turtlerock\")\n            .clipShape(Circle())\n            .overlay(Circle().stroke(Color.white, lineWidth: 4))\n            .shadow(radius: 7)\n    }\n}\n\nstruct CircleImage_Previews: PreviewProvider {\n    static var previews: some View {\n        CircleImage()\n    }\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 XCode\u89e6\u308a\u59cb\u3081\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u3068\u3001Playground\u00a0\u304b\u3089\u3001SwiftUI\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u521d\u3081\u3066\u3001\u30ad\u30e3\u30f3\u30d0\u30b9\u3068\u30c6\u30ad\u30b9\u30c8\u3092\u89e6\u3063\u305f\u7d9a\u304d\u3067\u3001\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3092\u89e6\u3063\u3066\u307f\u308b\u3002 https:\/\/developer. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1041,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[127],"tags":[134,143],"class_list":["post-1039","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-swift","tag-swiftui"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1039"}],"version-history":[{"count":3,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1039\/revisions"}],"predecessor-version":[{"id":1087,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1039\/revisions\/1087"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media\/1041"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}