mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
383 B
Swift
19 lines
383 B
Swift
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5
|
|
// REQUIRES: objc_interop
|
|
// REQUIRES: OS=macosx
|
|
|
|
import SwiftUI
|
|
|
|
@MainActor
|
|
class ContentState: ObservableObject { }
|
|
|
|
@available(SwiftStdlib 5.3, *)
|
|
struct SomeView: View {
|
|
@StateObject private var contentState = ContentState()
|
|
|
|
var body: some View {
|
|
Text("Hello, world!")
|
|
}
|
|
}
|
|
|