ЯТ
Size: a a a
ЯТ
DY
DY
ЯТ
ᅠ
DY
ЯТ
ЯТ
DY
DY
ЯТ
D
LandmarkList: View {
var body:
some View {
NavigationView {
List(landmarkData) { landmark
in
NavigationLink(destination: LandmarkDetail(landmark: landmark)) {
LandmarkRow(landmark: landmark)
}
}
.navigationBarTitle(Text("My Places Navigator"))
}
}
}
D
//
// ContentView.swift
// Form
//
// Created by Dmitriy Stekvashov on 19.11.2021.
//
import SwiftUI
struct ContentView: View {
@State private var colors = ["Red", "Green", "Blue"]
@State private var selectedColor = 0
@State private var additionalSettings = false
var body: some View {
NavigationView {
Form {
Picker(selection: $selectedColor, label: Text("Select a color")) {
ForEach(0..<colors.count) {
Text(colors[$0])
}
}
.pickerStyle(SegmentedPickerStyle())
Toggle(isOn: $additionalSettings) {
Text("Additional settings")
}
Button {
//
} label: {
Text("Save changes")
}
}
}
.navigationTitle("Serrings")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
A
A
СГ
A
A
СГ
D