r/iOSProgramming • • Aug 30 '19

Application Might not be super impressive, but we're developing an app in SwiftUI and this is our hierarchy so far.

Post image
123 Upvotes

75 comments sorted by

View all comments

Show parent comment

6

u/juniorRubyist Swift Aug 31 '19

3.

25

u/USERNAME_ERROR Aug 31 '19

Well you clearly are just a junior ruby dev.

1

u/juniorRubyist Swift Aug 31 '19

I used to program in ruby. I’m actually a student btw. I prefer python and iOS now.

12

u/USERNAME_ERROR Aug 31 '19

I was just poking fun at your username. Why 3 tho?

3

u/juniorRubyist Swift Aug 31 '19

I tried out SwiftUI and it doesn’t support navigation really well. It’s also really slow in Xcode. I’ll have to try it again though.

9

u/SgtDirtyMike Aug 31 '19

Slowness is not an issue. Must be your Mac or XCode install. My issues with it are that it's extremely tricky to exactly replicate certain things that you can do with a storyboard. Some of the methods simply don't work and documentation is lacking in a lot of areas. For example .lineLimit just basically doesn't work on Text views.

3

u/juniorRubyist Swift Aug 31 '19

I totally agree with storyboards being better.

1

u/youngermann Aug 31 '19

Text().lineLimit(1) lineLimit(4) works for me for Watch and iPhone.

1

u/SgtDirtyMike Aug 31 '19

What part about this works? You have to set the line limit twice? Still super buggy.

1

u/youngermann Sep 01 '19

Not twice. I’ve used it for both cases and it works: it truncates at one line or at 4 lines.

1

u/SgtDirtyMike Sep 01 '19

Interesting. I super appreciate your suggestion. Do you have any documentation on this? Not sure if it's the expected behavior. Working on my end too, but it doesn't make any sense to me why.

→ More replies

4

u/Dynoman Aug 31 '19

The betas are always slow though, but of course Xcode is really slow with storyboards and xibs too.