SwiftUI

software framework developed by Apple From Wikipedia, the free encyclopedia

Remove ads

SwiftUI is a framework for building user interface for iOS, iPadOS, watchOS, tvOS, visionOS and macOS

Quick Facts Developer(s), Initial release ...

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]

Remove ads

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!")
    }
}

Refrences

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads