DC iOS: SwiftUI Architecture and Best Practices

preview_player
Показать описание
SwiftUI Architecture and Best Practices

Mohammad Azam

In this talk Azam will share his experience of when working with SwiftUI architecture. Azam will discuss best practices and patterns for working with SwiftUI framework.

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

At first I was concerned about organization, but by the end of it, I completely agree. Great talk.

PeteSchuette
Автор

This feels so wrong to me, it's like going back to the beginning but instead of having massive view controllers, we now have massive... views???
For small personal projects or tutorials (like the ones you showed from Apple), this should be enough. But in real world applications where many developers are working in one app, this pattern won't let each other to safely edit a complex view. We use automatic tests for view models AND views because many developers might be working on a single view/feature, we can't just test manually or use xcode previews... anyways

davidlangley
Автор

Never knew i was doing the exact way how Azam did and thought myself it was wrong until watching this video. Great talk ❤

withniyaz
Автор

For iOS 17 and the new Observation framework, this pattern will make sense. Also, for iOS17, the view will not be reloaded unless the view got changed.

wonton
Автор

Great talk! This is so similar to modern react, which is great!

pengwei
Автор

One important caveat to this approach, he based it on his experience creating 200 prototypes in a couple of years... That leaves you with very low complexity per each app, so what he says indeed makes sense in that context, but if you are a team of 15 devs working on a single complex app, that's a different scenario completely, and his advice for large apps are not battle tested, he just thinks it will probably work...

HumanoidTyphoon
Автор

I like the thinking behind your presentation - have to consider it in the future. What are you using to align the closing braces visually?

jdotseven
Автор

Hi Azam, thank you for your beautiful SwiftUI Architecture and Best Practices talk. I have a question though. In the 50 minutes of Count example, you mentioned view whose state property doesn't change, it doesn't get recreated but rather reevaluated. But I tried setting random colors to Text. Every time when I press the Increament button the count increases and also color of Counter changes even though it is a static text. Can you explain that?

mohammedrokonuddin
Автор

48:00 We can't run tests in parallel in this case, right?

trendz
Автор

"I am going to test this manually" lost me :D

pet
Автор

Nice approach, not applicable in big projects also remind me the masive view controller and seems too permisive to where business logic resides, not so good for clarity on big projects, tutorial projects will be fine.

gogugigi
Автор

Can you please talk about The Composable Architecture.

VinoKanan
Автор

We can create whole app in single file but that does not mean we should, same way we can write whole logic in view class sill it will work that does not mean we should

narencool
Автор

Test manually lol :). This is not a good practice

praveenvelanati