Files
NetNewsWire/iOS/Account/Account+CredentialsView.swift
T

26 lines
560 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// Account+CredentialsView.swift
// NetNewsWire-iOS
//
// Created by Brent Simmons on 11/25/26.
//
import SwiftUI
import Account
extension Account {
var hasCredentialsView: Bool {
type == .miniflux || CredentialsAccountView.accountTypes.contains(type)
}
/// The view for updating this account’s credentials.
@ViewBuilder func credentialsView() -> some View {
if type == .miniflux {
MinifluxAccountView(account: self, didAddAccount: nil)
} else {
CredentialsAccountView(accountType: type, account: self, didAddAccount: nil)
}
}
}