mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 03:37:41 +00:00
Use new AccountManager.shared.hasiCloudAccount instead of local code.
This commit is contained in:
1 parent
d51d441019
commit
cbf6e6fd1b
1 file changed
+3
-8
@@ -204,8 +204,8 @@ struct AddAccountsView: View {
|
||||
})
|
||||
})
|
||||
.offset(x: 7.5, y: 0)
|
||||
.disabled(isCloudInUse())
|
||||
|
||||
.disabled(AccountManager.shared.hasiCloudAccount)
|
||||
|
||||
Text(AddAccountSections.icloud.sectionFooter).foregroundColor(.gray)
|
||||
.padding(.horizontal)
|
||||
.lineLimit(3)
|
||||
@@ -280,15 +280,10 @@ struct AddAccountsView: View {
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
}
|
||||
|
||||
private func isCloudInUse() -> Bool {
|
||||
AccountManager.shared.accounts.contains(where: { $0.type == .cloudKit })
|
||||
}
|
||||
|
||||
|
||||
private func chunkedWebAccounts() -> [[AccountType]] {
|
||||
AddAccountSections.web.sectionContent.chunked(into: chunkLimit)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user