30 lines
640 B
Swift
30 lines
640 B
Swift
//
|
|
// Copyright Amazon.com Inc. or its affiliates.
|
|
// All Rights Reserved.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#if canImport(UIKit)
|
|
import SwiftUI
|
|
|
|
/// Detail view containing device information
|
|
struct DeviceInfoDetailView: View {
|
|
|
|
private let screenTitle = "Device Information"
|
|
|
|
var body: some View {
|
|
SwiftUI.List(DeviceInfoHelper.getDeviceInformation()) { listItem in
|
|
InfoRow(infoItem: listItem)
|
|
}
|
|
.navigationBarTitle(Text(screenTitle))
|
|
}
|
|
}
|
|
|
|
struct DeviceInfoDetailView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
DeviceInfoDetailView()
|
|
}
|
|
}
|
|
#endif
|