2019-06-11 23:59:16 +02:00
|
|
|
//
|
|
|
|
// SettingsAddAccountView.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 6/11/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
2019-06-13 21:30:56 +02:00
|
|
|
import Account
|
2019-06-11 23:59:16 +02:00
|
|
|
|
|
|
|
struct SettingsAddAccountView : View {
|
|
|
|
var body: some View {
|
|
|
|
List {
|
2019-06-13 21:30:56 +02:00
|
|
|
PresentationButton(SettingsAccountLabelView(accountImage: "accountLocal", accountLabel: Account.defaultLocalAccountName),
|
2019-06-12 20:25:14 +02:00
|
|
|
destination: SettingsLocalAccountView(name: "")).padding(.all, 4)
|
2019-06-11 23:59:16 +02:00
|
|
|
PresentationButton(SettingsAccountLabelView(accountImage: "accountFeedbin", accountLabel: "Feedbin"),
|
2019-06-12 20:25:14 +02:00
|
|
|
destination: SettingsFeedbinAccountView(viewModel: SettingsFeedbinAccountView.ViewModel())).padding(.all, 4)
|
2019-06-11 23:59:16 +02:00
|
|
|
}
|
|
|
|
.listStyle(.grouped)
|
|
|
|
.navigationBarTitle(Text("Add Account"), displayMode: .inline)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
struct AddAccountView_Previews : PreviewProvider {
|
|
|
|
static var previews: some View {
|
|
|
|
SettingsAddAccountView()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|