VIM: A new SwiftUI Architecture for iOS 17

  Переглядів 3,560

Flo writes Code

Flo writes Code

День тому

We all know MVVM, MVC, and perhaps even TCA. But might it be time to consider a new architecture? Let's explore how we can use the AppIntents framework to build clean & reusable code.
Join this channel to get access to perks:
/ @flowritescode
🚀 LaunchBuddy: apple.co/3iFcjjW
📚 Try CWC+: bit.ly/cwc_flo
☕️ Buy me a coffee: ko-fi.com/flowritescode
👋 Links: flowritesco.de
🛠 Forge: apple.co/3riG8MQ
Affiliate Links ❤
📕 SwiftUI & Combine Books: www.bigmountainstudio.com/a/t...
🔬 Get Reports about your apps: appfigures.com/r/5by3g
📊 Privacy focused analytics: dashboard.telemetrydeck.com/r...
💻 The most powerful mac app for developers: devutils.app/?ref=flo
☕️ Support me: ko-fi.com/flowritescode
If you have any video suggestions please feel free to let me know by a comment.
Get in contact via
Twitter: / flowritescode

КОМЕНТАРІ: 11
@indiekiduk
@indiekiduk 7 місяців тому
Usually wrapping an app action in an additional layer of framework indirection causes problems (and leads to a lot of wrapping/unwrapping boiler plate) so I'll be interested to hear how this idea pans out
@tscholze
@tscholze 7 місяців тому
This is by far the first ever "app-wide" usage of AppIntends that I ever saw. To be honest, this seems like the "thousands of micro services"-approach of the late 2010s in the web industry, but maybe I'm an old grumpy man that hated the transition from MVC to MVVM and now with SwiftUI back to MCV or MVI. I see advantages in having an intend per action like create, update, delete for me the question is, if you have a web service in the background with a repository to hold states (if it is not SwiftData) if this approach is still usable *hm*.
@jordancalhouncom
@jordancalhouncom 7 місяців тому
This intrigues the heck out of me
@marceljaeger
@marceljaeger 25 днів тому
Nice video and an interesting approach. What do you think about encapsulate code for actions in a simple type and create global methods? Then you have all actions in one place and you can use it everywhere in your app.
@FloWritesCode
@FloWritesCode 13 днів тому
Not a fan of that, as I see no advantage over AppIntents (expect for smaller code). Essentially you're saying to use one big ViewModel for the entire app, right?
@marceljaeger
@marceljaeger 13 днів тому
@@FloWritesCode Oke. No, not exactly. The data would be in the view. But all methods for buttons or other actions are in a separated type that you can access from all views. And you pass the data that the method needs as parameters.
@tiIIus
@tiIIus 7 місяців тому
Could you make a video on how to implement a fully working subscription just with StoreKit 2 and the new SwiftUI SubscriptionStoreView?
@FloWritesCode
@FloWritesCode 6 місяців тому
I'm planning to do that, yes. It's not on the Roadmap right now though, so I'd suggest watching someone else's video on the topic in the mean time (or just the WWDC talk from this year where they presented the StoreKit news).
@arjundureja
@arjundureja 7 місяців тому
So in this example, let's say you wanted to add the ability to update and delete food. Would you need separate AppIntents for those two actions? If so, having a single view model that encapsulates all that logic sounds better to me
@FloWritesCode
@FloWritesCode 7 місяців тому
Yes, exactly. You‘d need one AppIntent for each piece of logic in your app. Swift Macros might help automate that process, but it is some overhead for sure…
@chezchezchezchez
@chezchezchezchez 7 місяців тому
I love the VIM mode on Xcode!!
How To Create Collection On Shopify??
10:37
Aliza Naeem
Переглядів 167
iphone 6 this application requires ios 14.0 or later
0:34
SARDOR MASTER
Переглядів 332 тис.
когда одна дома // EVA mash
00:51
EVA mash
Переглядів 6 млн
MVVM is BAD for SwiftUI - Use MVC Instead! (Yes, MVC)
13:28
Rebeloper - Rebel Developer
Переглядів 3,5 тис.
SwiftUI - Intro to MVVM | Example Refactor | Model View ViewModel
11:55
Why I don't do MVVM anymore
10:56
Flo writes Code
Переглядів 6 тис.
Why Model-View-Intent (MVI) is My NEW Favorite Architecture
9:44
CodingWithMitch
Переглядів 47 тис.
Getting started with iOS modularization by Luka Terzić
23:48
Infinum
Переглядів 3,2 тис.
SwiftUI Navigation Made Easy: Harnessing the Magic of Enums
13:40
Rebeloper - Rebel Developer
Переглядів 1,7 тис.
STOP Using MVVM with SwiftUI
18:30
azamsharp
Переглядів 16 тис.
Big Tech AI Is A Lie
16:56
Tina Huang
Переглядів 52 тис.
STOP using MVVM for SwiftUI | Clean iOS Architecture
18:58
Rebeloper - Rebel Developer
Переглядів 28 тис.
Phone repairs are getting ridiculous - Here's why.
22:24
Mrwhosetheboss
Переглядів 170 тис.
Как установить Windows 10/11?
0:56
Construct PC
Переглядів 1,4 млн
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 2 млн
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 927 тис.
I wish I knew this When Istarted Programming #school #software  #codingtips
0:34
Claude Ams - Programming Guru 💻
Переглядів 10 млн
ЭТОТ МОНСТР ОТ INFINIX КРУЧЕ ЛЮБОГО XIAOMI! Я в шоке…
13:01
Thebox - о технике и гаджетах
Переглядів 24 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 16 млн
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 927 тис.