What does "some" exactly maen in SwiftUI?

I saw this keyword before but I am confused it

You read it like… it’s some kind of:

var body: some view {

Which mean body is some kind of view

1 Like

@maomao Please check out the opaque types section in our Swift 5.1. tutorial when you get a chance:


I hope it helps!

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.