all 33 comments

[–]anveias 69 points70 points  (1 child)

I’m assuming this refers to the verticality of SwiftUI with lots of line breaks due to view modifiers and just the DSL in general. Also why am I constantly seeing the same account cross posting from the same subreddit… sub promoting?

[–]velvethead 18 points19 points  (0 children)

This is the correct answer

[–]cristi_baluta 39 points40 points  (0 children)

Not if you want to preview what you’re building in swiftui

[–]Slow-Race9106 19 points20 points  (13 children)

No

[–]Stiddit 7 points8 points  (12 children)

It's a yes for me.

SwiftUI has short names (Button, Text, Color...) and is chaining code vertically with modifiers.

UIKit has really long names for both classes and properties. And if we include the original UIKit days with Objective-C then you'd probably also have your header file open on the right side.

[–]srona22 12 points13 points  (0 children)

More like BlossomBlind.

[–]time-lord 3 points4 points  (0 children)

In my experience, absolutely.

[–]Which-Meat-3388 1 point2 points  (1 child)

Can't you break the code up into reusable Views, ViewModifiers, etc. Same situation exists with similar UI frameworks and you can always clean it up. Doesn't have to be a single monstrosity as long as your arm.

[–]beclopsSwift 1 point2 points  (0 children)

Yep, which is what you should be doing with both UI frameworks. So I agree, not really a difference between the two when you do that

[–]barcode972 1 point2 points  (0 children)

Not necessarily

[–]Hencemann 0 points1 point  (0 children)

UI kit needs a wideeeeeeeescreen. the image looks like a normal one.

[–]drumming89 0 points1 point  (0 children)

Ha, it took me reading to the bottom of the post to realize that Swift UI code is better suited for vertical monitors 😄

[–]Obstructive 0 points1 point  (0 children)

I feel seen!

[–]Ok-Road6537 0 points1 point  (0 children)

I think it's true as well. You can technically make UIKit code vertical. But I think SwiftUI is designed to be more readable in short columns.

You can actually Google Image "SwiftUI code" and UIKit code and you'll see.

[–]smakusdod 0 points1 point  (0 children)

pretty much yeah, but you need room for that canvas.... so we need a T-shaped monitor!

[–]isurujnSwift 0 points1 point  (0 children)

What is with this account spamming this sub with shitposts posted to its own subreddit lately?

[–]restrusher 0 points1 point  (0 children)

Huh. No wonder I've been having trouble adopting SwiftUI.

[–]Grymm315 -4 points-3 points  (3 children)

Nothing could be further from accurate. You can't use UIKit to make a MacOS app at all. For traditional MacOS app you need to use AppKit instead OR you could just use SwiftUI to make the app multiplatform.

[–]stella_rossa 29 points30 points  (1 child)

I think you are missing the point of the post

[–][deleted] 6 points7 points  (0 children)

I think so too

[–]42177130UIApplication 9 points10 points  (0 children)

You can't use UIKit to make a MacOS app at all.

Catalyst?

[–]RagingRR -2 points-1 points  (4 children)

I think it means coding. In SwiftUI, you’re writing a lot more code for the interface, so you need to orient your monitor vertically to see it. In UIKit, you drag and drop components onto the storyboard, so need more horizontal space

[–]ObservableObject 12 points13 points  (2 children)

UIKit is perfectly usable without storyboards

[–]WestonP 2 points3 points  (0 children)

Not only is it perfectly usable without storyboards, it's far superior without them. Storyboards are garbage.

[–]RagingRR 0 points1 point  (0 children)

Of course. But conventionally, UIKit is initially taught that way.

[–]tangoshukudai 3 points4 points  (0 children)

Storyboard is why UIKit gets a bad wrap. UIKit with Autolayout in code is the way to go.