Another reason I hate Apple as developer, nice video though, Thanks!
@FloWritesCode42 хвилини тому
Great episode, Sean! Thanks for sharing the idea of avoiding MVVM as well. I think all the recent Observation, SwiftData & SwiftUI releases made this simple architecture even better.
@umarparacha653Годину тому
is Swiftui is still New...when become mainstream ...
@catsCollection2 години тому
it works on iOS but on macOS it is being dragged but not accepting it to be dropped, please help
@ssherwerwer2 години тому
I love your straightforward approach to sharing insights and advice!
@ahzootube9 годин тому
Just Downloaded XCode and was really happy about this course until I see that, Xcode does not support UIKit anymore...
@paulallen408610 годин тому
I just signed up for Teachable and enrolled in the iOS Dev Launchpad-Updated for iOS 15 course. Thank you for your assistance on my Journey. 👍
@emperor_yt11 годин тому
could you provide a link to the source code :)
@DivyanshArya-bc2dx12 годин тому
As an flutter developer swift is amazing
@sunbrite1215 годин тому
Thanks fro sharing!
@seanallen13 годин тому
You bet!
@VishalSharma-dx7mp20 годин тому
challenge answer 1: declare this in the variable section: struct WeatherItems: Identifiable { let id = UUID().uuidString let day: String let image: String let temp: Int } // Create an array of objects let weatherArray: [WeatherItems] = [ WeatherItems(day: "tue", image: "cloud.sun.fill", temp: 30), WeatherItems(day: "wed", image: "sun.max.fill", temp: 45), WeatherItems(day: "thu", image: "cloud.fill", temp: 25), WeatherItems(day: "fri", image: "cloud.rain.fill", temp: 22), WeatherItems(day: "sat", image: "wind", temp: 24) ] Relace the sub view with this(Under HStack) : ForEach(weatherArray){ item in WeatherDayView(dayOfTheWeek: item.day.uppercased(), imageName: item.image, temperature: item.temp) }
@filip_hoodДень тому
Great vid Sean! Thanks for all the info! I'm trying to focus more on actually "doing things" instead of spending my time on social media, so this sum up of what people are talking about and what's new is just great. Keep it up! :)
@randomjjj4034День тому
❤🔥❤🔥
@SanusiAdewaleДень тому
I'll stick with MVVM, its easy to understand, it separates and keeps everything neat and easy. You automatically know whats wrong and where it went wrong. Whatever this guy is suggesting will be a nightmare! I get that he's geeky to come up with that, but always remember to keep it simple!
@ygndskДень тому
Thank you for free content and work. But as an engineer I would prefer a more detailed course that details actually how things work in SwiftUI in comparision with UIKit. This course is for beginners. I am looking for another course after completing first two hours. Anyway, thanks.
@seanallenДень тому
Yup, this course is geared towards beginners. Thats the target audience.
@malschauen6267День тому
Why do you start speaking right after 0.00000000000001 seconds after the start of the video? I would prefer 0.5 or 1 or 2 seconds of silence before speaking.
@seanallenДень тому
Got it
@malschauen6267День тому
@@seanallen Thank you for considering.
@trustmub123 години тому
😂😂😂😂
@silver10188День тому
awesome thank you
@seanallenДень тому
You're welcome!
@ml-techДень тому
Ugh the EU getting their nose everywhere on ppl’s business is just getting out of hand. Each and everyday i convince myself more and more that Brexit wasn’t such a terrible idea after all
@seanallenДень тому
It's annoying, that's for sure.
@OnionKnight541День тому
respectfully, if you're looking for a way to teach this concept, i don't think the intern / boss metaphor is the best option.
@kironet2 дні тому
MV is cool and so, but how the hell do you write tests for it? Most apps are not as simple as shown in the video. I have VMs with hundreds of lines of code since the project is not small, if I move it all to inside the view it'll become a nightmare to navigate... Don't tell me "tests are worthless" as the dude who created that "famous" discussion...
@seanallenДень тому
Then stay with MVVM 🤷. The point of the discussion that isn't to say "MVVM is bad, never use it". I say it in the video, there's no one right architecture for all situations and each has their pros/cons.
@kironetДень тому
@@seanallen I'm staying with MVVM but all these articles/videos(not you) saying how MV is amazing, never actually show a real world example. They always show the most basic code snippet. Most of them avoid talking about tests or straight up say tests are worthless. Maybe you could make video comparing these two arch. without using the most basic code snippets(even just simple call with pagination logic would suffice, I think)
@gofudgeyourselves90242 дні тому
ok
@WikiPeoples2 дні тому
I AM SO DEMOTIVATED :(
@seanallenДень тому
Why?
@vamsi38772 дні тому
Thanks Sean 👏
@gregorymoore28772 дні тому
I was thinking of writing an article. The title I have is "When To Add Sound To Your App." "Never" is as far as I've gotten.
@indiekiduk2 дні тому
I think the mvvm crowd didnt learn or refused to learn structs or View structs. I noticed in your vid you were calling an environment struct an object!
@seanallen2 дні тому
I'm not great at using the text book language for things. It's something I can be better at. I hear it all the time in my videos when I call something a variable, but I defined it as a "let". Like... c'mon. You know what I mean.
@noorlancer2 дні тому
The sponsor of your video isn't making money from apps. His revenue is being generated from selling products from his youtube channel
@seanallen2 дні тому
I'd love to hear more details. I've been following him for years and his UKposts channel just recently started to grow. Of course, I don't have insight into their business but I can't imagine the UKposts channel was super impactful before the last year or two. Regardless, the channel has great information. I stand by that from personal experience.
@Tyheir2 дні тому
You should react to some of the videos shitting on the Vision Pro and giving your thoughts on it.
@seanallen2 дні тому
That's not really my style, but I do believe Apple Vision Pro will be a success in the long run. I see huge potential, but it's certainly not there just yet.
@Tyheir2 дні тому
@@seanallen that’s fair
@pkhkp2 дні тому
Yeah, coupling your view with logic and services, what could go wrong ? It goes against having small views that have no responsibility other that displaying stuff. Seems very, very wrong, even occasionally. I'm refactoring this kind of stuff almost daily.
@gregorymoore28772 дні тому
You mean you can't make your views smaller by moving code into them that should have been in the view model? 🤯
@mortezafaraji4792 дні тому
Babe Wake up!!! Swift News just dropped!!!
@WestCoastAce272 дні тому
Great info as always; esp how to dispute (and hopefully eliminate) 1 stars. But it would be nice if Apple put a little AI into the review process. A 1 word ‘junk’ review gives a dev nothing to go on. Should be an easy coding exercise to verify that a review has some content/context and isn’t just from a rival. PS - congrats to all WWDC attendees. Have fun; be safe.
@srzurka2 дні тому
Thank you Sean. That was very informative. I always appreciate when you unpack the reasons behind your perspective.
@seanallen2 дні тому
Glad it was helpful!
@ToddHoff2 дні тому
With SwiftData, because model objects are observable, it's natural to make one object for everything. This works well, I think, even though it goes against historical practice.
@JasonMitchellAZ2 дні тому
Swift News, new course from Sean, WWDC right around the corner, and the MLS immersive demo (was super cool)… this is great! (Also, I created a small PR for Swift News, if you’re interested in the fixes.)
@seanallen2 дні тому
Fun times! Thanks for doing that. Approved & merged!
@victorioborge2 дні тому
Great video as always! Swift News is my favorite source of news. Which software do you use to create the 'laser pointer' while you talk?
@seanallen2 дні тому
Not sure what you're referring to. I'm just recording my screen with Safari open and highlighting parts of text with my mouse.
@victorioborge9 годин тому
@@seanallen I just realized that the video I mentioned is from App Master not you, I got confused, sorry! lol
@Hgvpuncher2 дні тому
MV with SwiftUI for small projects... if you want MVVM then you are better off going with UIKit unless you wanna fight the framework, spend hours and days for workarounds then spend weeks trying to solve the bugs and unwanted behaviours you get from the workarounds and this is all because you have decided to go against a framework... the average joe needs to learn that you shouldn't default to a strict architecture for every single project but hey try teaching this to ignorant people
@pkhkpДень тому
We use MVVM and SwiftUI for a critical segment of our application, there are no big warkarounds and bugs are easy to catch and fix. What do you mean practically by "fighting the framework" or "workarounds" ? What does a published UI state in the MV not solve ?
@captainmichaelj23212 дні тому
Thanks for this, I love this content, I am hoping you can continue this if your time permits.
@seanallen2 дні тому
Since it's only once per month, I will definitely continue Swift News. At least through the end of 2024, then we'll reassess. But so far it's been very well received.
@user-ic8rm2zf7v2 дні тому
Thanks Sean for all the content
@seanallen2 дні тому
No problem!
@theracereviewer292 дні тому
I think TCA is quickly becoming the next big way to architect SwiftUI apps. Have you looked into that? Did a quick search on your channel for it but couldn't find anything.
@seanallen2 дні тому
I've researched it a little, but haven't built anything with it. I don't know enough to have an opinion on it.
@JohnGers2 дні тому
You mentioned you don’t know what to call this architecture, from a quick glance it seems similar to a Flux pattern but with the functions that would be in your store instead being called from the view. Which might be a little dangerous because you’re coupling your views to the frameworks/components the store needs to perform what it needs but that’s a fairly easy problem to solve with proper dependency inversion. Apple likes to use this Flux style pattern in a lot of their examples too and it’s going to be even more enabled with the Observation framework. Pretty much any architecture that has a unidirectional style data flow seems to work really nicely in SwiftUI at least in my experience.
@smotch75332 дні тому
4:15 I would not recommend this if you ever want to test your app.
@seanallen2 дні тому
I don't have real world experience with it yet, but he says testing is the most common question he gets and addresses it at the bottom of the article.
@ro3422 дні тому
MVVM dead AF!
@victorriurean2 дні тому
🔥
@ChadGaul2 дні тому
“Bibbity boops and bops” 😆 Ah good stuff, Sean.
@seanallen2 дні тому
That’s the official term.
@vinidotco2 дні тому
I'm simple person, see a new Swift News video and gave a thumbs up thanks Sean
@seanallen2 дні тому
I appreciate that!
@JonatanEdOrtiz2 дні тому
I imagine this is terrible for unit testing.
@seanallen2 дні тому
I haven't used it in a real app yet, but he addresses testing at the bottom of his article.
@JonatanEdOrtiz2 дні тому
@@seanallen I'll take a look.
@pkhkp2 дні тому
"Since your views are just expressions of a state, the best tests are snapshot tests." Crazy this kind of stuff is taken seriously in 2024. We never learn do we. It's not about testing views, it's about testing the logic that changes the state of your view, the stuff that he removed from the VM and put in the view.
@indiekiduk2 дні тому
You don't need objects just for testing you can test funcs
@Hgvpuncher2 дні тому
@@pkhkpu don't need tests in 2024 just hit run it works then upload to appstore jobdone. If u get bug reports just ignore them for now
@AhmedKamal-EG3 дні тому
Hey Sean, thanks man.. I really enjoy learning with you. Now I have a problem. Whenever I build the app and run it this message appear in the debug window (<0x12de08630> Gesture: System gesture gate timed out.). what could be wrong?.. Xcode 15.3, Swift 5.10..thanks again. Greetings from Egypt
@konstantin2153 дні тому
Nice guide. But what about waterfall layout?
@cliftontv3 дні тому
@Sean this video aged like wine. 11 months later and I believe you saved me a TON of design time. I think that was just another excuse for me to find something else to do it complete the project. “Oh, I gotta learn how to do design like they do over at Design+Code (Meng is great, by the way)” Thanks again!