Back to Browse

SwiftUI: Building Reusable Components

11.7K views
May 31, 2021
9:04

Learn how to build SwiftUI Components! In this series, I will teach you how to build reusable and customizable SwiftUI views that you can reuse across your own projects. In this episode, I'll show you the basics of refactoring an existing UI. This is the foundation for building reusable components. 00:00 Intro 01:37 What we're going to build 01:58 The sample app 02:36 Extract Subview (Refactoring #1) 04:26 Extract to Method (Refactoring #2) 06:35 Extract to Computed Property (Refactoring #3) 07:34 Summary Subscribe to my newsletter: https://not-only-swift.peterfriese.dev/ Follow me on Twitter: https://twitter.com/peterfriese Follow me on Mastodon: https://iosdev.space/@peterfriese Read my articles on my blog: http://peterfriese.dev Check out my projects on GitHub: https://github.com/peterfriese Source code for this series: https://github.com/peterfriese/SwiftUI-Component-Series

Download

0 formats

No download links available.

SwiftUI: Building Reusable Components | NatokHD