Stop using Spacer in SwiftUI (and what to use instead)
Stop using Spacer in SwiftUI (and what to use instead)
Mentoring π https://rebeloper.com/mentoring
In this video, we're going to be talking about the Spacer in SwiftUI and how to use it correctly. We'll also be discussing some alternatives to the Spacer, which will better suit your needs. If you're using the Spacer in your SwiftUI layouts, then you may be experiencing some issues. In this video, we'll be discussing the problems with the Spacer and how to properly use the alternatives to fix them. By the end of the video, you'll know how to properly use the Spacer and avoid common issues.
CHAPTERS:
00:00 INTRO
00:30 SWIFTUI SPACER EXAMPLE
01:22 SWIFTUI LAYOUT EXPLAINED
02:40 SPACER WITH COLOR IN SWIFTUI
03:48 SPACER MINIMUM LENGTH
05:01 MENTORING
05:36 TWO SPACERS IN SWIFTUI
06:12 FRAME WITH ALIGNMENT
08:46 ALIGNMENT VIEW EXTENSION
13:00 WHERE TO GO NEXT
Donβt forget to download the resources: β here
VIDEOS I RECOMMEND
10 Amazing SwiftUI One Liners - SHOULD YOU Use Them?
Firebase Login in SwiftUI: Step by Step Masterclass
Dependency Injection in SwiftUI, the Best Pattern
SwiftUI Navigation Perfected: Harnessing NStack's Game-changing Capabilities
World's Shortest SwiftUI Course
DO YOU WANT TO BE MY APPRENTICE? HIRE ME
Say Hi on social:
Github: https://github.com/rebeloper/
Hire me: https://rebeloper.com/hire-us/
LinkedIn: https://www.linkedin.com/in/rebeloper/
Follow me on Instagram: https://www.instagram.com/rebeloper/