mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 12:06:58 +01:00
35 lines
681 B
Swift
35 lines
681 B
Swift
//
|
|
// ConfiguredAccountRow.swift
|
|
// Multiplatform macOS
|
|
//
|
|
// Created by Stuart Breckenridge on 13/7/20.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import Account
|
|
|
|
struct ConfiguredAccountRow: View {
|
|
|
|
var account: Account
|
|
|
|
var body: some View {
|
|
HStack(alignment: .center) {
|
|
if let img = account.smallIcon?.image {
|
|
Image(rsImage: img)
|
|
.resizable()
|
|
.frame(width: 20, height: 20)
|
|
.aspectRatio(contentMode: .fit)
|
|
}
|
|
Text(account.nameForDisplay)
|
|
}.padding(.vertical, 4)
|
|
}
|
|
|
|
}
|
|
|
|
struct ConfiguredAccountRow_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ConfiguredAccountRow()
|
|
}
|
|
}
|