|
You are here |
tanaschita.com | ||
| | | | |
swiftwithmajid.com
|
|
| | | | | The recent version of the SwiftUI framework introduces a trigger value pattern across its APIs. Trigger value allows us to attach a view modifier that runs its action whenever the trigger value changes. You can find this pattern while using sensory feedback or launching keyframe animation in SwiftUI. This week, we will learn how to build custom view modifiers using trigger value pattern. | |
| | | | |
www.iamsim.me
|
|
| | | | | Not being able to run arbitrary code in SwiftUI view builders can be quite annoying. The other day I realized it's possible to use self executing closures to work around this! Here's a contrived example that creates a stretchy header: struct ScrollThing: View { var body: some View { ScrollView { VStack(spacing: 0) { GeometryReader { g in Color.white .offset(y: { let offsetY = g.frame(in: .global).minY return offsetY > 0 ? | |
| | | | |
sarunw.com
|
|
| | | | | iOS 17 bring a new trick to animate number in SwiftUI. Let's learn how to do it. | |
| | | | |
swiftwithmajid.com
|
|
| | | That is WWDC week: everybody is so excited about so many new things like SwiftUI, Dark Mode, updateable Core ML models, etc. I will try to cover all the new stuff during the upcoming weeks. Let's start with SwiftUI. SwiftUI is an entirely new approach to building apps for the Apple ecosystem. | ||