{"id":2708,"date":"2020-01-31T20:43:19","date_gmt":"2020-01-31T20:43:19","guid":{"rendered":"http:\/\/4310.mynmi.net\/?page_id=2708"},"modified":"2026-03-21T22:01:25","modified_gmt":"2026-03-21T22:01:25","slug":"getting-started-with-swiftui-and-working-with-text","status":"publish","type":"page","link":"https:\/\/nmi.cool\/appdev\/getting-started-with-swiftui-and-working-with-text\/","title":{"rendered":"Getting Started with SwiftUI and Working with Text"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>This second chapter in Mastering SwiftUI, as the title indicates, introduces you to the use of text with SwiftUI. Give it careful attention because a good understanding of how to format text is fundamental to app development.<\/p>\n\n\n\n<p><strong>Read Chapter 2: Getting Started with SwiftUI and Working with Text from Mastering SwiftUI<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Takeaways<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>SwiftUI uses <code>Text<\/code> as its primary display element \u2014 think of it as SwiftUI&#8217;s equivalent of HTML&#8217;s <code>&lt;p&gt;<\/code> tag.<\/li>\n\n\n<li>Text is styled with modifiers like <code>.font()<\/code>, <code>.foregroundColor()<\/code>, <code>.bold()<\/code>, and <code>.italic()<\/code> \u2014 modifiers chain together and their order can affect the result.<\/li>\n\n\n<li>SwiftUI&#8217;s declarative syntax means you describe <em>what<\/em> the UI should look like, not <em>how<\/em> to draw it step by step.<\/li>\n\n\n<li>Padding, alignment, and background color are all applied as modifiers \u2014 every styling decision runs through the modifier chain.<\/li>\n\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview This second chapter in Mastering SwiftUI, as the title indicates, introduces you to the use of text with SwiftUI. Give it careful attention because a good understanding of how to format text is fundamental to app development. Read Chapter 2: Getting Started with SwiftUI and Working with Text from Mastering SwiftUI Key Takeaways<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2708","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/pages\/2708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/comments?post=2708"}],"version-history":[{"count":3,"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/pages\/2708\/revisions"}],"predecessor-version":[{"id":4176,"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/pages\/2708\/revisions\/4176"}],"wp:attachment":[{"href":"https:\/\/nmi.cool\/appdev\/wp-json\/wp\/v2\/media?parent=2708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}