Back to Browse

Stop using Spacer() in SwiftUI

18.2K views
May 24, 2023
6:01

Spacer is an easy solution to move Views around on the screen. And while in complex screens it makes sense to use this View, in other situations it makes the code a bit cluttered. Let's explore an alternative using the frame ViewModifier. 🚀 LaunchBuddy: https://apple.co/3iFcjjW 📚 Try CWC+: https://bit.ly/cwc_flo ☕️ Buy me a coffee: https://ko-fi.com/flowritescode 👋 Links: https://flowritesco.de 🛠 Forge: https://apple.co/3riG8MQ Affiliate Links ❤ 📕 SwiftUI & Combine Books: https://www.bigmountainstudio.com/a/tpgmp 🔬 Get Reports about your apps: https://appfigures.com/r/5by3g 📊 Privacy focused analytics: https://dashboard.telemetrydeck.com/registration/organization?referralCode=27AOWO4R1TTEJBST 💻 The most powerful mac app for developers: https://devutils.app/?ref=flo ☕️ Support me: https://ko-fi.com/flowritescode If you have any video suggestions please feel free to let me know by a comment. Get in contact via Twitter: https://twitter.com/FloWritesCode

Download

0 formats

No download links available.

Stop using Spacer() in SwiftUI | NatokHD