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
@@ -73,7 +73,6 @@ final class LocationSharingCoordinator: Coordinator, Presentable {
// MARK: - Setup
@available(iOS 14.0, *)
init(parameters: LocationSharingCoordinatorParameters) {
self.parameters = parameters
@@ -55,7 +55,6 @@ enum LocationSharingViewError {
case failedSharingLocation
}
@available(iOS 14, *)
struct LocationSharingViewState: BindableState {
/// Map style URL
@@ -18,7 +18,6 @@ import Foundation
import SwiftUI
import CoreLocation
@available(iOS 14.0, *)
enum MockLocationSharingScreenState: MockScreenState, CaseIterable {
case shareUserLocation
@@ -18,11 +18,9 @@ import SwiftUI
import Combine
import CoreLocation
@available(iOS 14, *)
typealias LocationSharingViewModelType = StateStoreViewModel<LocationSharingViewState,
Never,
LocationSharingViewAction>
@available(iOS 14, *)
class LocationSharingViewModel: LocationSharingViewModelType, LocationSharingViewModelProtocol {
// MARK: - Properties
@@ -18,7 +18,6 @@ import Foundation
import Combine
import CoreLocation
@available(iOS 14.0, *)
class MockLocationSharingService: LocationSharingServiceProtocol {
func requestAuthorization(_ handler: @escaping LocationAuthorizationHandler) {
handler(.authorizedAlways)
@@ -17,7 +17,6 @@
import XCTest
import RiotSwiftUI
@available(iOS 14.0, *)
class LocationSharingUITests: XCTestCase {
private var app: XCUIApplication!
@@ -20,7 +20,6 @@ import CoreLocation
@testable import RiotSwiftUI
@available(iOS 14.0, *)
class LocationSharingViewModelTests: XCTestCase {
var cancellables = Set<AnyCancellable>()
@@ -18,7 +18,6 @@ import SwiftUI
import Combine
import Mapbox
@available(iOS 14, *)
struct LocationSharingMapView: UIViewRepresentable {
// MARK: - Constants
@@ -109,7 +108,6 @@ struct LocationSharingMapView: UIViewRepresentable {
}
// MARK: - Coordinator
@available(iOS 14, *)
extension LocationSharingMapView {
class Coordinator: NSObject, MGLMapViewDelegate, UIGestureRecognizerDelegate {
@@ -16,7 +16,6 @@
import SwiftUI
@available(iOS 14.0, *)
struct LocationSharingMarkerView<Content: View>: View {
// MARK: - Properties
@@ -45,7 +44,6 @@ struct LocationSharingMarkerView<Content: View>: View {
// MARK: - Previews
@available(iOS 14.0, *)
struct LocationSharingUserMarkerView_Previews: PreviewProvider {
static var previews: some View {
let avatarData = AvatarInput(mxContentUri: "",
@@ -16,7 +16,6 @@
import SwiftUI
@available(iOS 14.0, *)
struct LocationSharingOptionButton<Content: View>: View {
// MARK: - Properties
@@ -42,7 +41,6 @@ struct LocationSharingOptionButton<Content: View>: View {
}
}
@available(iOS 14.0, *)
struct LocationSharingOptionButton_Previews: PreviewProvider {
static var previews: some View {
VStack(alignment: .leading) {
@@ -17,7 +17,6 @@
import SwiftUI
import CoreLocation
@available(iOS 14.0, *)
struct LocationSharingView: View {
// MARK: - Properties
@@ -164,7 +163,6 @@ struct LocationSharingView: View {
// MARK: - Previews
@available(iOS 14.0, *)
struct LocationSharingView_Previews: PreviewProvider {
static let stateRenderer = MockLocationSharingScreenState.stateRenderer
static var previews: some View {
@@ -16,7 +16,6 @@
import SwiftUI
@available(iOS 14.0, *)
struct MapCreditsView: View {
// MARK: - Properties
@@ -36,7 +35,6 @@ struct MapCreditsView: View {
}
}
@available(iOS 14.0, *)
struct MapCreditsView_Previews: PreviewProvider {
static var previews: some View {
MapCreditsView()
@@ -18,7 +18,6 @@ import Foundation
import SwiftUI
import Mapbox
@available(iOS 14, *)
class LocationAnnotationView: MGLUserLocationAnnotationView {
// MARK: - Constants