Stop using Spacer in SwiftUI (and what to use instead)

Stop using Spacer in SwiftUI (and what to use instead)

Rebeloper - Rebel Developer

54 года назад

3,506 Просмотров

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.

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

→ PLAYLIST:
Learn SwiftUI 👉 https://www.youtube.com/watch?v=zJo6KbeM9Jk&list=PL_csAAO9PQ8b_MM0X-DZ5A6iXzKx0vqRp&ab_channel=Rebeloper-RebelDeveloper

DO YOU WANT TO ME TO WORK ON YOUR PROJECT?
HIRE ME → https://rebeloper.com/hire-us/

TOOLS I RECOMMEND:
https://rebeloper.com/tools
__________
Get in touch:
[email protected]

SUBSCRIBE to weekly tips & tutorials for building iOS apps!
https://www.youtube.com/rebeloper/?su...

GitHub: https://github.com/rebeloper/
Hire me: https://rebeloper.com/hire-us/
LinkedIn: https://www.linkedin.com/in/rebeloper/
My Blog: https://rebeloper.com/blog
Follow me on Instagram: https://www.instagram.com/rebeloper/
Twitter: https://twitter.com/rebeloper
______
#rebeloper

Тэги:

#swiftui #swift #xcode #spacer #swiftui_spacer #swiftui_basics #swiftui_tutorial #swiftui_frame #swiftui_frame_maxwidth #swiftui_frame_alignment #swiftui_alignment_guide #swiftui_alignment_not_working #swiftui_alignment_top #swiftui_alignmentguide_example #swiftui_alignment_leading #swiftui_alignment_in_zstack #swiftui_alignment_left #swiftui_alignment_right #swiftui_text_alignment #swiftui_alignment_bottom #swiftui_align_vstack_to_top #swiftui_align_top #rebeloper #swifui_align
Ссылки и html тэги не поддерживаются


Комментарии: