2019-06-11 16:59:16 -05: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 14:30:56 -05:00
|
|
|
import Account
|
2019-06-11 16:59:16 -05:00
|
|
|
|
|
|
|
struct SettingsAddAccountView : View {
|
2019-09-08 10:18:45 -05:00
|
|
|
@Environment(\.presentationMode) var presentation
|
2019-09-07 20:50:57 -05:00
|
|
|
|
2019-06-11 16:59:16 -05:00
|
|
|
var body: some View {
|
2019-06-18 16:54:51 -05:00
|
|
|
Form {
|
2019-09-11 20:50:03 -05:00
|
|
|
NavigationLink(destination: SettingsLocalAccountView(name: "")) {
|
2019-06-17 17:48:32 -05:00
|
|
|
SettingsAccountLabelView(accountImage: "accountLocal", accountLabel: Account.defaultLocalAccountName)
|
|
|
|
}
|
2019-09-11 20:50:03 -05:00
|
|
|
NavigationLink(destination: SettingsFeedbinAccountView(viewModel: SettingsFeedbinAccountView.ViewModel())) {
|
2019-06-17 17:48:32 -05:00
|
|
|
SettingsAccountLabelView(accountImage: "accountFeedbin", accountLabel: "Feedbin")
|
|
|
|
}
|
2019-09-14 15:15:13 -05:00
|
|
|
NavigationLink(destination: SettingsReaderAPIAccountView(viewModel: SettingsReaderAPIAccountView.ViewModel(accountType: .freshRSS))) {
|
|
|
|
SettingsAccountLabelView(accountImage: "accountFreshRSS", accountLabel: "Fresh RSS")
|
|
|
|
}
|
2019-06-11 16:59:16 -05:00
|
|
|
}
|
|
|
|
.navigationBarTitle(Text("Add Account"), displayMode: .inline)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
struct AddAccountView_Previews : PreviewProvider {
|
|
|
|
static var previews: some View {
|
|
|
|
SettingsAddAccountView()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|