additional work on iOS sheets

This commit is contained in:
Stuart Breckenridge
2020-12-05 22:58:11 +08:00
parent ad678f2fc1
commit 762417e2ba
8 changed files with 171 additions and 36 deletions

View File

@@ -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: