0:00 / 0:00
Developing Custom Modifiers in SwiftUI
Swift and Tips
13K subscribers • 12 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Pedro Rojas
- Linked in the descriptionpitt500/swift-and-tips
Intermediate. Assumes working knowledge.
1.7K views4 years ago1 recommendation
Mobile developmentSwiftiOS and SwiftUI
Pedro Rojas explains how to build custom view modifiers in SwiftUI and analyzes their performance implications.
Hello everyone, Today we will explore one of the most important features of SwiftUI, modifiers. They help us to compose our views really easily, but Do you know how to build your own modifiers and what about the performance? Let's dive in! 😉 Content: - Intro - What is a modifier? - The order matters - Building my own modifier - Are modifiers costly? - Do you want to learn more? ------ Source code showed in the video: github.com/pitt500/swift-and-tips/tree/main/Modifiers/Modifi… ------ Resources: * ViewModifier: developer.apple.com/documentation/swiftui/viewmodifier * Custom modifiers: hackingwithswift.com/books/ios-swiftui/custom-modifiers * modifier: developer.apple.com/documentation/swiftui/view/modifier(_:) * Modifier maintenance: developer.apple.com/documentation/swiftui/reducing-view-modi… * Demystify SwiftUI: developer.apple.com/videos/play/wwdc2021/10022/ ------ Other videos in the channel: * Is nil a null pointer?: youtu.be/YUsXRLUalgs * Why can't you use Int indices in a String?: youtu.be/k35T7E1hxeQ * LazyVStack: youtu.be/yrly21IFQdY * GeometryReader and apple Watch animations: youtu.be/ma4LP8RnyI0 * What's new in SwiftUI 3.0: youtu.be/ewIeL1Trd5o * Swift Concurrency: youtube.com/playlist?list=PLHWvYoDHvsOUsGazZVW_ZdehusA0diIxs ----- Don't forget to subscribe to the channel, like it, and follow me on social media: Twitter: twitter.com/swiftandtips twitter.com/pitt500 Finally, ask me for a video you would like to see next 😄! Credits: - Music by Wataboi from pixabay.com/ - Video edited with LumaFusion