struct FamilyActivityPicker
A view in which users specify applications, web domains, and categories without revealing their choices to the app.
struct SignInWithAppleButton
The view that creates the Sign in with Apple button for display.
Technology
To access SwiftUI views defined in another framework, import both SwiftUI and the other framework into the file where you use the view. You can find the framework to import by looking at the availability information on the view’s documentation page. For example, to use the Map
view in your app, import both SwiftUI and MapKit:
import SwiftUI
import MapKit
struct MyMapView: View {
// Center the map on Joshua Tree National Park.
private var region = MKCoordinateRegion(
center: CLLocationCoordinate2D(latitude: 34.011_286, longitude: -116.166_868),
span: MKCoordinateSpan(latitudeDelta: 0.2, longitudeDelta: 0.2)
)
var body: some View {
Map(coordinateRegion: $region)
}
}
struct FamilyActivityPicker
struct SignInWithAppleButton
struct SceneView
struct SpriteView
struct LocationButton
struct Map
struct CameraView
struct NowPlayingView
struct VideoPlayer