mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-21 14:06:10 +01:00
31 lines
875 B
Swift
31 lines
875 B
Swift
//
|
|
// SettingsAddAccountView.swift
|
|
// NetNewsWire-iOS
|
|
//
|
|
// Created by Maurice Parker on 6/11/19.
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct SettingsAddAccountView : View {
|
|
var body: some View {
|
|
List {
|
|
PresentationButton(SettingsAccountLabelView(accountImage: "accountLocal", accountLabel: "On My Device"),
|
|
destination: SettingsLocalAccountView(name: ""))
|
|
PresentationButton(SettingsAccountLabelView(accountImage: "accountFeedbin", accountLabel: "Feedbin"),
|
|
destination: SettingsFeedbinAccountView(viewModel: SettingsFeedbinAccountView.ViewModel()))
|
|
}
|
|
.listStyle(.grouped)
|
|
.navigationBarTitle(Text("Add Account"), displayMode: .inline)
|
|
}
|
|
}
|
|
|
|
#if DEBUG
|
|
struct AddAccountView_Previews : PreviewProvider {
|
|
static var previews: some View {
|
|
SettingsAddAccountView()
|
|
}
|
|
}
|
|
#endif
|