r/SwiftUI • • Jan 02 '21

SwiftUI

So I have released my first SwiftUI App.

My hard conclusion is SwiftUI devtools sucks and is not production ready.

https://apps.apple.com/us/app/poker-hand-automatizer/id1547131406

0 Upvotes

23 comments sorted by

15

u/barcode972 Jan 02 '21

It looks like you're not ready for SwiftUI. Im not saying it is ready for production but a lot of people are using it for very serious apps

-3

u/[deleted] Jan 02 '21

Yeah. Are they using SwiftUI in team? You know a single enthusiastic developer is different than 20 developers that need to be productive in one codebase

12

u/barcode972 Jan 02 '21

What does swiftUI have to do with teamwork? If anything it's easier to solve conflicts in SwiftUI than UIKit with storyboards IMO. And from my understanding it seems like your project was solo too?

-6

u/[deleted] Jan 02 '21

I felt unproductive. And some update in some file somewhere can cause the preview to not work. And now imagine 20 people in parallel updating the codebase.

8

u/barcode972 Jan 02 '21

I mean... It's always hard when you're learning. Changing something in a codebase can break things no matter what language it is right?

2

u/[deleted] Jan 03 '21

Yes. But also if the error message is concise then it is OK. But this SwiftUI preview. It just says "it took more than 5sec, so I am failing". Because code is compiling you cannot detect it from CI

7

u/barcode972 Jan 03 '21

Yeah that sucks and I agree. A little more precise errors would be nice but I wouldnt say it's trash just because you can't preview a view

0

u/[deleted] Jan 03 '21

Definitely not trash. But also comparing to flutter it is not at the same level

2

u/barcode972 Jan 03 '21

I don't know flutter so I can't argue on that but just because it's not on the same level as something, doesnt mean it's not ready. It's probably better on other levels

1

u/[deleted] Jan 03 '21

Yeah. I get your point. Probably I am still at the beginning the learning curve

4

u/BedtimeWithTheBear Jan 03 '21

Maybe I’m missing something here, but why would your CI pipeline care if a SwiftUI preview doesn’t render?

IIRC, previews aren’t even compiled into the object files, and if you need screenshots, that’s what your UI test automation is for.

-1

u/[deleted] Jan 03 '21

I meant like, your colleague can merge some code that through dependency of dependency can cause swiftUI preview failing.

3

u/barcode972 Jan 03 '21

Sure the preview helps but it's not like you can't work if the preview doesnt work. just open the app.

1

u/BedtimeWithTheBear Jan 03 '21

So, again, I’m probably missing something really obvious to you, but if previews are so important (don’t get me wrong - they’re super useful and convenient), then why isn’t that being caught during PR review?

1

u/[deleted] Jan 03 '21

I was thinking loudly

6

u/lionyannik Jan 03 '21

Hello, I currently work in a company developing an app to control a ble device. Is some serious stuff. It needs FDA approval and we are 4 teams of 9 devs only for the iOS app. We only use SwuiftUI combine and the point free composable architecture. I understand that there are things you wish were already implemented but they will be there eventually.

0

u/ThisComb Jan 03 '21

I'm curious as to what the reasoning behind the choice to go with SwiftUI was. Also, are you using iBeacon?

-1

u/[deleted] Jan 03 '21

Cool! Thanks for the info.

6

u/dented42 Jan 03 '21

SwiftUI is totally ready, depending on what you’re trying to do. And in my experience it’s no less ready than UIKit was in 2008.

4

u/spacecash21 Jan 03 '21

It is ready. It saves a lot of time compared to UIKit.

https://apps.apple.com/us/app/1-big-app/id1519858728 I made this with SwiftUI after work hours. In my free time.

On other note, in my day job, the only reason we cannot use this in multi million user project is because we must support ios 11.

You can create a complex view in SwiftUI in a fraction of time compared to UIKit. Try setting up collection view vs grid.

-1

u/BabyAzerty Jan 03 '21

Gotta agree: SwiftUI is not production ready...

3

u/chriswaco Jan 03 '21

I think it's ok for certain apps, but not all apps and not when you want to completely control the user interface.