2019-06-11 23:59:16 +02:00
|
|
|
//
|
|
|
|
// SettingsAccountLabelView.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 6/11/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
struct SettingsAccountLabelView : View {
|
|
|
|
let accountImage: String
|
|
|
|
let accountLabel: String
|
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
HStack {
|
2019-09-08 03:50:57 +02:00
|
|
|
Image(accountImage)
|
|
|
|
.resizable()
|
|
|
|
.aspectRatio(1, contentMode: .fit)
|
|
|
|
.frame(height: 32)
|
|
|
|
Text(verbatim: accountLabel).font(.title)
|
2019-06-11 23:59:16 +02:00
|
|
|
}
|
2019-09-08 03:50:57 +02:00
|
|
|
.foregroundColor(.primary).padding(4.0)
|
2019-06-11 23:59:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
struct SettingsAccountLabelView_Previews : PreviewProvider {
|
|
|
|
static var previews: some View {
|
|
|
|
SettingsAccountLabelView(accountImage: "accountLocal", accountLabel: "On My Device")
|
|
|
|
.previewLayout(.fixed(width: 300, height: 44))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|