What is the `some` keyword in Swift(UI)?

后端 未结 11 639
庸人自扰
庸人自扰 2020-12-04 04:54

The new SwiftUI tutorial has the following code:

struct ContentView: View {
    var body: some View {
        Text(         


        
11条回答
  •  感情败类
    2020-12-04 05:47

    For those who were dizzy by the subject, here a very decrypting and step by step article thanks to Vadim Bulavin.

    https://www.vadimbulavin.com/opaque-return-types-and-the-some-keyword-in-swift/

提交回复
热议问题