Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
52いいね 1407回再生

Josh Holtz: How to Think Like a SwiftUI ViewModifier

Presented at Swift Heroes 2021

HOW TO THINK LIKE A SWIFTUI VIEWMODIFIER

Josh Holtz, Lead Maintainer, fastlane tools

ViewModifiers are a key component when developing any SwiftUI application. I've used them without knowing I was using them and chances are you have too. Some examples of the view modifiers you'll find baked into SwiftUI are background, frame, font, and bold. But what exactly is a ViewModifier and how do you make your own? It's a function that makes a copy of a view and then modifies it. This talk will cover how view modifiers are applied, the importance of order, and how to create your own custom modifiers. We'll end with an advanced example of creating swipeable cell modifier for a scroll view.

#SwiftHeroes #SwiftConnected
swiftheroes.com/
twitter.com/swiftheroes_it
www.linkedin.com/showcase/swift-heroes

コメント