You're using SwiftUI wrong

preview_player
Показать описание
When building app features and designs with SwiftUI it's best to be like water. David Smith, creator of the app Widgetsmith and co-host of the Under the Radar podcast described this philosophy eloquently in their latest episode "Hard Forks". In this video I discuss the idea of "being like water" when working with SwiftUI.

iOS Developer Courses

Twitter:

Creator View:

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson's Hacking With Swift:

Donny Wals - Combine:

Mark Moeyken’s SwiftUI Books:

Ray Wenderlich Books:

Links to my iOS Dev Setup & iOS Dev Book Recommendations

#swift #softwaredeveloper #iosdeveloper
Рекомендации по теме
Комментарии
Автор

Hello, Sean
I've been following you for about 2 years.. started learning iOS dev and few months ago landed a part time job( remote ) before graduation. I just wanted to thank you. you really helped me grow.

shahriarrahmanshaon
Автор

Be like water works after you've spent a lot of time being the boulder the water flows around. SwiftUI has a lot of eddies and waterfalls to trap beginners.

ToddHoff
Автор

I work for a small company and have that design influence. SwiftUI has been amazing for this.

harold_davis
Автор

Thanks for this video, I came here for other reason, but I find the light, Thanks again!

carloszetula
Автор

Great advice Sean. That goes for many situations in life - go with the flow!

KimbrellBrad
Автор

SwiftUI is my magic. It’s just fast and simple, I love it. I don’t understand the UIKIT debate lol. UIKit is great but… given the choice I’d choose SwiftUI any day

juliansha
Автор

Exactly what I’m experiencing converting my uikit app to SwiftUI. Lots of walls and resistance. I’ll try to flow more like water 🤜

gakkieNL
Автор

Good observations. Like most things in life, a trade off. Thanks Sean.

glennadams
Автор

thanks for this!
ps: content like this is great. it's nice to have things like this that i can watch/absorb as a sort of break from coding.

jjjjjjjjjjjjjjjjjjjjjjjjjjoo
Автор

Thanks for the content!
I love and hate SwiftUI at the same time. It usually saves so much time working on UI.

But at the same time, don't get me started about the navigation in SwiftUI, primarily decoupling NavigatonLinks from views to make them reusable ...
Also, the incompatibility of the new SwiftUI features with older versions makes it impossible to keep your project up with the latest technology. Mainly, most apps should support at least 2+ latest iOS versions.

vladlk
Автор

I have recently transitioning from UIKit to SwiftUI and it's indeed much cleaner and also more fun. BUT, some views in Chord ai rely on high performance animations (like the audio waveform scroll view) and SwiftUI animations have terribly bad performances compared to the old fashioned UIView simple animation functions. I did my best watching WWWDC videos about SwiftUI drawing performance and debugging but it didn't help. Also, why don't they give us full control over ScrollView content offset??

chordai
Автор

bro just groomed me into using swiftUI

funnyturtles
Автор

Your last comment about changing designs to work with SwiftUI unfortunately isn’t an option in most situations.

Product and design want something a certain way, and if they aren’t flexible about it your kind of out of luck.

That being said, SwiftUI is extremely flexible. If there’s something you can’t do right out of the box it’s generally not difficult to build it.

For example, pre iOS 16, sheets didn’t have the option for half size sheets.

It took me about an hour to get a working resizable sheet in swiftUI. And a few days to polish out the bugs.

The same thing in UIKit pre iOS 15 would have taken me significantly longer. And significantly more math.

Xaxxus
Автор

Checkmate, Apple said the best way to make iOS apps is with SwiftUI now. So that's what I'll invest in. Now, are those muffins ready in the oven behind you yet please?

antlister
Автор

Stop trying to to put a square peg in a round hole, put it in the square hole

nigelgee