Files
NetNewsWire/iOS/Settings/Views/Account and Extensions/AddAccountListView.swift
Stuart Breckenridge ad66d7072c Multiple revisions
Accounts

- Manage Accounts title updated to “Manage Accounts”
- Swift left to delete account added (with confirmation alert)
- After adding an account, user is returned to the Manage Accounts view
- Done button added to the Add Account view

Extensions

- Plus button added
- Consistent UI with Add Account
- Swipe left to deactivate added (with confirmation alert)

Import / Export

- Converted to two separate cells, with action sheet
2022-12-13 09:14:03 +08:00

34 lines
699 B
Swift

//
// AddAccountListView.swift
// NetNewsWire-iOS
//
// Created by Stuart Breckenridge on 13/12/2022.
// Copyright © 2022 Ranchero Software. All rights reserved.
//
import SwiftUI
import Account
struct AddAccountListView: View {
@Environment(\.dismiss) var dismiss
var body: some View {
NavigationView {
AddAccountWrapper()
.navigationTitle("Add Account")
.navigationBarTitleDisplayMode(.inline)
.edgesIgnoringSafeArea(.all)
}
.onReceive(NotificationCenter.default.publisher(for: .UserDidAddAccount)) { _ in
dismiss()
}
}
}
struct AddAccountListView_Previews: PreviewProvider {
static var previews: some View {
AddAccountListView()
}
}