I had absolutely no idea about that autocompletion trick, thanks!
@martinq872 Жыл бұрын
Oh! You finally make video about spacer! I’ve wait for this from you said on short video until now! 😁
@easybusinessou24 күн бұрын
Great content! Just a small suggestion: it would be even better if the focus was more on the screen code with fewer transitions. Also, keeping your photo in a small circle in the corner works well. Thanks for the valuable insights!
@abdulkarimkhaan11 ай бұрын
I have been creating SwiftUI tutorials from last two months and this is a great piece of advice for aligning texts or view. It will increase readability by keeping code clean. Will definitely use this from now onwards. Big Thanks!! :))
@FloWritesCode11 ай бұрын
Great to hear!
@natgenesis50384 ай бұрын
Very facts i just found that , since i started caring other screen sizes .
@yeserguitar Жыл бұрын
Good suggestion for a neat and readable code. Thank you!
@marcesmack3 күн бұрын
Great video! What’s the best way to keep the size of the window or at least a minimum size and proportions on visionOS?
@illyakrit7494 Жыл бұрын
Nice Star Wars helmets! And advices are very useful
@ramonteiro10 ай бұрын
Totally agree. 4 Spacer() to only keep a Text in a corner seems quite verbose 😅Thanks for the tip
@FloWritesCode10 ай бұрын
You're welcome!
@rahuljamba58465 ай бұрын
Great thanks for sharing your knowledge 📚
@FloWritesCode4 ай бұрын
My pleasure!
@holgerflick Жыл бұрын
Great video! Thank you! Just a note... did you notice the flicker after most of the pans? It is quite unnerving and distracts from the excellent content.
@FloWritesCode Жыл бұрын
Thanks. I already passed that on to this video‘s editor and it seems to have been a rendering issue in Premiere. Will hopefully be fixed in all videos going forward👍🏼
@alihodroj95599 ай бұрын
Great tips! Thanks a lot for the video.
@FloWritesCode9 ай бұрын
Glad it was helpful!
@swiftandtips Жыл бұрын
Great tip! 😃
@DevLiuSir Жыл бұрын
Thanks! Simplified a lot.
@FloWritesCode Жыл бұрын
Glad it helped!
@KevinChromik Жыл бұрын
Very useful, thanks!
@rahuljamba5846 Жыл бұрын
Great 💡 tips thanks for sharing
@sunrizz Жыл бұрын
Great! Thanks! 🙌
@fsck-music6 ай бұрын
What's the shortcut to take what you've highlighted and place it within curly braces? I've been doing this by hand 💀
@FloWritesCode6 ай бұрын
Just use the curly braces, there's no shortcut. Xcode automatically places them around the selected lines :D
@simonIsDev6 ай бұрын
it's so usefull for me
@natgenesis50384 ай бұрын
GeometryReader,Stacks and Padding are enough
@Scott-oe7dv4 ай бұрын
what was the short cut you used to add outer {} to a view?
@FloWritesCode4 ай бұрын
No shortcut, just select mutliple lines and type a {
@vsemenchenko Жыл бұрын
Thanks! Is using overlay efficient rather than ZStack+VStack?
@FloWritesCode Жыл бұрын
Since SwiftUI is closed-source, I really don't know how things are implemented under the hood :/
@redhotbits Жыл бұрын
just male view extension with spacers
@CarstenVoss-oh2el3 ай бұрын
Sorry but this is title is confusing for new people. This works as long as you use view which tries to take as much space as possible (e.g. Color). If one would use your advise and overlay a Text with an Image, one need to set a frame on the text with the correct size and alignment for that frame. Additionally, as the modifier name suggests, the content of the original view could overlapped by the overlay.
@ivenprillwitz Жыл бұрын
Of don’t get what’s wrong with spacer(). Easy to read.
@FloWritesCode Жыл бұрын
Yup, in some cases it really makes sense. This video just shows an alternative that can be cleaner at times :D
@indomitabletr1834 Жыл бұрын
@@FloWritesCode I agree, different scenarios for different needs
@tokero51997 ай бұрын
@@FloWritesCode Your video is literally called Stop using Spacer() in SwiftUI...
@natgenesis50384 ай бұрын
Other screen sizes
@Hewhogotslapd5 ай бұрын
Title is misleading for beginners. Geomettery reader is great for the example that you shared, however for more simple UIs Spacer is much easier to use and creates less code complexity. Otherwise great video.
@FloWritesCode5 ай бұрын
How is GeometryReader relevant here?
@natgenesis50384 ай бұрын
For all screen sizes spacer() is nightmare . GeometryReader is very powerful for all screen sizes and position .