実装
import SwiftUI
struct HomeView: View {
var body: some View {
List {
HStack {
Text("System Name")
Spacer()
Text(UIDevice.current.systemName)
}
HStack {
Text("System Version")
Spacer()
Text(UIDevice.current.systemVersion)
}
HStack {
Text("Device Model")
Spacer()
Text(UIDevice.current.model)
}
HStack {
Text("Device Name")
Spacer()
Text(UIDevice.current.name)
}
}
}
}