mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
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
34 lines
699 B
Swift
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()
|
|
}
|
|
}
|