SwiftUI
| Developer(s) | Apple Inc. | 
|---|---|
| Initial release | June 3, 2019 | 
| Operating system | iOS, iPadOS, macOS, tvOS, watchOS, visionOS | 
| Website | https://developer.apple.com/xcode/swiftui/ | 
SwiftUI is a framework for building user interface for iOS, iPadOS, watchOS, tvOS, visionOS and macOS
More information
SwiftUI is used in other Apple development frameworks to make apps, like UIKit and AppKit.
SwiftUI is in other Apple's technologies, like Xcode and Swift Playgrounds.
History
SwiftUI was announced at Apple's World Wide Developers Conference on June 3, 2019, and it was added in IOS 13 and macOS Catalina.
In 2020, Apple added support for maps with the Map view, with a user interface from Apple Maps with MapKit.[1] MapKit allows for satelite images and other things.
In 2023 during WWDC 2023, Apple announced the Apple Vision Pro, a mixed reality headset, and support for the device was added to SwiftUI, with new views for AR content such as RealityView and ImmersiveSpace.[2]
Example
Here is a Hello world program written with SwiftUI.
import SwiftUI
@main
struct AnApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}
struct ContentView: View {
    var body: some View {
        Text("Hello, World!")
    }
}
References
- ↑ "MapKit for SwiftUI". Apple Developer Documentation. Retrieved 2024-01-10.
- ↑ "Meet SwiftUI for spatial computing - WWDC23 - Videos". Apple Developer. Retrieved 2024-01-31.