/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

sarunw.com
| | swiftwithmajid.com

During WWDC 23, SwiftUI introduced a new view modifier called visualEffect. This modifier allows us to attach a set of animatable visual effects by accessing layout information of the particular view. This week, we will learn how to use the new visualEffect view modifier in SwiftUI.
2.5 parsecs

Travel
| |
| | 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
4.3 parsecs

Travel
| |
| | fatbobman.com

ViewBuilder - Result builders? result builders ViewBuilder SwiftUI
4.2 parsecs

Travel
| |
| | www.swiftbysundell.com

This week, let's take a look at a few different ways of configuring views when using SwiftUI, and the sort of pros and cons that each of those approaches gives us in terms of code structure and flexibility.
41.9 parsecs

Travel
|