Explore >> Select a destination


You are here

arturgruchala.com
| | www.iamsim.me
1.9 parsecs away

Travel
| | 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 ?
| | www.vadimbulavin.com
3.2 parsecs away

Travel
| | Learn the three phases of SwiftUI view lifecycle: Appearing, Updating and Disappearing.
| | www.objc.io
4.2 parsecs away

Travel
| | objc.io publishes books, videos, and articles on advanced techniques for iOS and macOS development.
| | brunoscheufler.com
32.3 parsecs away

Travel
| When developing a software product, you'll end up with multiple environments, for your local development environment, one or many development/staging environments, and a production environment (or multiple depending on your architecture). The same applies to mobile applications....