mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 08:32:53 +02:00
Remove all @available(iOS 14... annotations
This commit is contained in:
-1
@@ -46,7 +46,6 @@ final class StaticLocationViewingCoordinator: Coordinator, Presentable {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
init(parameters: StaticLocationViewingCoordinatorParameters) {
|
||||
self.parameters = parameters
|
||||
|
||||
|
||||
-1
@@ -20,7 +20,6 @@ import CoreLocation
|
||||
|
||||
/// Using an enum for the screen allows you define the different state cases with
|
||||
/// the relevant associated data for each case.
|
||||
@available(iOS 14.0, *)
|
||||
enum MockStaticLocationViewingScreenState: MockScreenState, CaseIterable {
|
||||
// A case for each state you want to represent
|
||||
// with specific, minimal associated data that will allow you
|
||||
|
||||
@@ -32,7 +32,6 @@ enum StaticLocationViewingViewModelResult {
|
||||
|
||||
// MARK: View
|
||||
|
||||
@available(iOS 14, *)
|
||||
struct StaticLocationViewingViewState: BindableState {
|
||||
|
||||
/// Map style URL
|
||||
|
||||
-2
@@ -17,11 +17,9 @@
|
||||
import SwiftUI
|
||||
import CoreLocation
|
||||
|
||||
@available(iOS 14, *)
|
||||
typealias StaticLocationViewingViewModelType = StateStoreViewModel<StaticLocationViewingViewState,
|
||||
Never,
|
||||
StaticLocationViewingViewAction>
|
||||
@available(iOS 14, *)
|
||||
class StaticLocationViewingViewModel: StaticLocationViewingViewModelType, StaticLocationViewingViewModelProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
-1
@@ -19,6 +19,5 @@ import Foundation
|
||||
protocol StaticLocationViewingViewModelProtocol {
|
||||
|
||||
var completion: ((StaticLocationViewingViewModelResult) -> Void)? { get set }
|
||||
@available(iOS 14, *)
|
||||
var context: StaticLocationViewingViewModelType.Context { get }
|
||||
}
|
||||
|
||||
-1
@@ -17,7 +17,6 @@
|
||||
import XCTest
|
||||
import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class StaticLocationViewingUITests: MockScreenTest {
|
||||
|
||||
override class var screenType: MockScreenState.Type {
|
||||
|
||||
-1
@@ -20,7 +20,6 @@ import CoreLocation
|
||||
|
||||
@testable import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class StaticLocationViewingViewModelTests: XCTestCase {
|
||||
|
||||
var cancellables = Set<AnyCancellable>()
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct StaticLocationView: View {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -89,7 +88,6 @@ struct StaticLocationView: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct StaticLocationSharingViewer_Previews: PreviewProvider {
|
||||
static let stateRenderer = MockStaticLocationViewingScreenState.stateRenderer
|
||||
static var previews: some View {
|
||||
|
||||
Reference in New Issue
Block a user