Hi. I'm running XCode 11 Beta and macOS Catalina Beta yet the Swift UI framework, doesn't seem to work:
//
// ContentView.swift
// SwiftUIByExample
//
// Created by *******777 on 7/11/19.
// Copyright © 2019 *******777. All rights reserved.
//
import SwiftUI
struct ContentView : View {
var body: some View {
Text("Hello World Hello // error here says Cannot invoke initializer for type 'Test' with no arguments
World Hello World Hello // error here says: Unterminated string literal
World Hello World Hello
World Hello World") // error here says: Unterminated string literal
}
}
#if DEBUG
struct ContentView_Previews : PreviewProvider {
static var previews: some View {
ContentView()
}
}
#endif
Erro
Yet this works on this tutorial:
https://www.youtube.com/watch?v=XF_euKrEB8c&list=PLuoeXyslFTubw4NtepDCis5tTqK37zT3Q&index=2
What setting did I forget to enable?
Thank you. God bless, Proverbs 31
(by the way, how do you attach files here, files like screenshots, a brief video, etc.?)