mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 20:16:54 +01:00
aca43090f8
Edit account now has its own model Refactored account creation and updated errors into separate enum Renamed some structs
30 lines
549 B
Swift
30 lines
549 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)
|
|
}
|
|
|
|
}
|
|
|