Remove all @available(iOS 14... annotations

This commit is contained in:
Johannes Marbach
2022-06-23 09:06:20 +02:00
parent 6d195c103d
commit 868fd7e0c8
271 changed files with 0 additions and 413 deletions
@@ -18,7 +18,6 @@ import SwiftUI
/// A single rounded rect chip to be rendered within `Chips` collection
@available(iOS 14.0, *)
struct Chip: View {
@Environment(\.isEnabled) var isEnabled
@@ -62,7 +61,6 @@ struct Chip: View {
}
}
@available(iOS 14.0, *)
struct Chip_Previews: PreviewProvider {
static var previews: some View {
Group {
@@ -17,7 +17,6 @@
import SwiftUI
/// Renders multiple chips in a flow layout.
@available(iOS 14.0, *)
struct Chips: View {
@State private var frame: CGRect = CGRect.zero
@@ -75,7 +74,6 @@ struct Chips: View {
}
}
@available(iOS 14.0, *)
struct Chips_Previews: PreviewProvider {
static var chips: [String] = ["Chip1", "Chip2", "Chip3", "Chip4", "Chip5", "Chip6"]
static var previews: some View {
@@ -17,7 +17,6 @@
import SwiftUI
/// Renders an input field and a collection of chips.
@available(iOS 14.0, *)
struct ChipsInput: View {
@Environment(\.theme) var theme: ThemeSwiftUI
@@ -47,7 +46,6 @@ struct ChipsInput: View {
}
}
@available(iOS 14.0, *)
struct ChipsInput_Previews: PreviewProvider {
static var chips = Set<String>(["Website", "Element", "Design", "Matrix/Element"])
static var previews: some View {
@@ -16,7 +16,6 @@
import SwiftUI
@available(iOS 14.0, *)
struct DefaultNotificationSettings: View {
@ObservedObject var viewModel: NotificationSettingsViewModel
@@ -28,7 +27,6 @@ struct DefaultNotificationSettings: View {
}
}
@available(iOS 14.0, *)
struct DefaultNotifications_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
@@ -18,7 +18,6 @@ import Foundation
import SwiftUI
/// An input field style for forms.
@available(iOS 14.0, *)
struct FormInputFieldStyle: TextFieldStyle {
@Environment(\.theme) var theme: ThemeSwiftUI
@@ -49,7 +48,6 @@ struct FormInputFieldStyle: TextFieldStyle {
}
@available(iOS 14.0, *)
struct FormInputFieldStyle_Previews: PreviewProvider {
static var previews: some View {
Group {
@@ -16,7 +16,6 @@
import SwiftUI
@available(iOS 14.0, *)
struct MentionsAndKeywordNotificationSettings: View {
@ObservedObject var viewModel: NotificationSettingsViewModel
@@ -39,7 +38,6 @@ struct MentionsAndKeywordNotificationSettings: View {
}
}
@available(iOS 14.0, *)
struct MentionsAndKeywords_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
@@ -20,7 +20,6 @@ import SwiftUI
///
/// Also renders an optional bottom section.
/// Used in the case of keywords, for the keyword chips and input.
@available(iOS 14.0, *)
struct NotificationSettings<BottomSection: View>: View {
@ObservedObject var viewModel: NotificationSettingsViewModel
@@ -45,14 +44,12 @@ struct NotificationSettings<BottomSection: View>: View {
}
}
@available(iOS 14.0, *)
extension NotificationSettings where BottomSection == EmptyView {
init(viewModel: NotificationSettingsViewModel) {
self.init(viewModel: viewModel, bottomSection: nil)
}
}
@available(iOS 14.0, *)
struct NotificationSettings_Previews: PreviewProvider {
static var previews: some View {
Group {
@@ -17,7 +17,6 @@
import SwiftUI
/// Renders the keywords input, driven by 'NotificationSettingsViewModel'.
@available(iOS 14.0, *)
struct NotificationSettingsKeywords: View {
@ObservedObject var viewModel: NotificationSettingsViewModel
var body: some View {
@@ -32,7 +31,6 @@ struct NotificationSettingsKeywords: View {
}
}
@available(iOS 14.0, *)
struct Keywords_Previews: PreviewProvider {
static let viewModel = NotificationSettingsViewModel(
notificationSettingsService: MockNotificationSettingsService.example,
@@ -16,7 +16,6 @@
import SwiftUI
@available(iOS 14.0, *)
struct OtherNotificationSettings: View {
@ObservedObject var viewModel: NotificationSettingsViewModel
@@ -27,7 +26,6 @@ struct OtherNotificationSettings: View {
}
}
@available(iOS 14.0, *)
struct OtherNotifications_Previews: PreviewProvider {
static var previews: some View {
NavigationView {