mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
additional work on iOS sheets
This commit is contained in:
@@ -19,6 +19,21 @@ struct AddReaderAPIAccountView: View {
|
||||
public var accountType: AccountType
|
||||
|
||||
var body: some View {
|
||||
#if os(macOS)
|
||||
macBody
|
||||
#else
|
||||
iosBody
|
||||
#endif
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
var iosBody: some View {
|
||||
Text("TBC")
|
||||
}
|
||||
#endif
|
||||
|
||||
#if os(macOS)
|
||||
var macBody: some View {
|
||||
VStack {
|
||||
HStack(spacing: 16) {
|
||||
VStack(alignment: .leading) {
|
||||
@@ -107,6 +122,10 @@ struct AddReaderAPIAccountView: View {
|
||||
}
|
||||
})
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
func createDisabled() -> Bool {
|
||||
if accountType == .freshRSS {
|
||||
@@ -122,6 +141,9 @@ struct AddReaderAPIAccountView: View {
|
||||
return 230
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private func signUp() {
|
||||
switch accountType {
|
||||
case .freshRSS:
|
||||
|
||||
Reference in New Issue
Block a user