Building REUSABLE SwiftUI components - Peter Friese | Swift Heroes 2023 Talk

Building REUSABLE SwiftUI components - Peter Friese | Swift Heroes 2023 Talk

18.282 Lượt nghe
Building REUSABLE SwiftUI components - Peter Friese | Swift Heroes 2023 Talk
🎟️ 2024 ticket SPECIAL PRICE: https://swiftheroes.com/2024/ ⏩ Chapter: 00:00 intro 02:56 The best way to build an app is with… 03:50 Hello world 06:01 Useful SwiftUI Refactorings 07:52 Peter’s Wishlist 12:26 Building a Reusable Text Input Field 14:04 Drop-in replacement for TextField 17:29 Customising Views 20:41 View Styling 22:09 Focus handling 22:42 Validation handling 24:56 - Exposing inner state 26:24 - Custom Validation 27:14 How to register Closures / Callbacks 28:04 Reusing the Component 31:15 Peter’s Wishlist 32:31 Live code Drop-in Replacement 36:38 Building a Reusable Text Input Field 📊 #SWIFTUI makes it easy to create beautiful UIs in no time, but it is just as easy to end up with a giant view that mixes view code and business logic. 🍏 Fortunately, Apple gave us some tools to keep the bloat in check and write maintainable and #reusable code. 🎬 In this #talk, I am going to show you how to: - refactor an existing SwiftUI view to make it more maintainable - turn it into a reusable SwiftUI component - add event handling - make the view configurable - add it to the Xcode component library - turn it into a shareable component that can be consumed via Swift Package Manager - and distribute it via GitHub and the Swift Package Index 🎤 Peter Friese, Developer Advocate, Firebase 📍Swift Heroes 2023 was hosted in Turin, 4-5 May. Attended by 320 iOS developer participants and broadcast to an additional 320 Swift enthusiasts across the globe. The agenda covered a range of important iOS developer topics including SwiftUI, the composable architecture, accessibility, developer tools, testing and much more. 📌 For more engaging content and expert insights, subscribe to our channel and hit the notification bell. 🛎️ Inform: https://swiftheroes.com/ ✅ Tweet: https://twitter.com/swiftheroes_it ✅ Connect: https://www.linkedin.com/showcase/swift-heroes/ ✅ Read: https://telegram.me/swiftheroes #SwiftHeroes #SwiftUI #UIDesign #AppDevelopment #ReusableComponents #Refactoring #MobileApp #SwiftUITutorial #CodingTips #iOSDev #SwiftProgramming