{"id":228585,"date":"2021-01-23T11:01:34","date_gmt":"2021-01-23T03:01:34","guid":{"rendered":"https:\/\/magicalbits.net\/?p=228585"},"modified":"2021-01-23T11:01:34","modified_gmt":"2021-01-23T03:01:34","slug":"swiftui-custom-view-modifiers","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=228585","title":{"rendered":"SwiftUI Custom View Modifiers"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/useyourloaf.com\/blog\/swiftui-custom-view-modifiers\/001.png\"><\/p>\n<p>Create your own custom SwiftUI view modifier when you want to reuse a set of modifiers on multiple views. Removing duplication also cleans up and improves the readability of your SwiftUI views. Here\u2019s my starting point. A SwiftUI view that contains two text views with some styling applied:<\/p>\n<p><a href=\"https:\/\/useyourloaf.com\/blog\/swiftui-custom-view-modifiers\/\">Read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create your own custom SwiftUI view modifier when you want to reuse a set of modifiers on multiple views. Removing duplication also cleans up and improves the readability of your SwiftUI views. Here\u2019s my starting point. A SwiftUI view that contains two text views with some styling applied: Read more<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[79,54],"class_list":["post-228585","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-api","tag-pocket"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/228585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228585"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/228585\/revisions"}],"predecessor-version":[{"id":228586,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/228585\/revisions\/228586"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}