mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 22:56:57 +02:00
Remove all @available(iOS 14... annotations
This commit is contained in:
-1
@@ -44,7 +44,6 @@ final class LiveLocationSharingViewerCoordinator: Coordinator, Presentable {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
init(parameters: LiveLocationSharingViewerCoordinatorParameters) {
|
||||
self.parameters = parameters
|
||||
|
||||
|
||||
-1
@@ -29,7 +29,6 @@ enum LiveLocationSharingViewerViewModelResult {
|
||||
|
||||
// MARK: View
|
||||
|
||||
@available(iOS 14, *)
|
||||
struct LiveLocationSharingViewerViewState: BindableState {
|
||||
|
||||
/// Map style URL
|
||||
|
||||
-2
@@ -18,11 +18,9 @@ import SwiftUI
|
||||
import Combine
|
||||
import Mapbox
|
||||
|
||||
@available(iOS 14, *)
|
||||
typealias LiveLocationSharingViewerViewModelType = StateStoreViewModel<LiveLocationSharingViewerViewState,
|
||||
Never,
|
||||
LiveLocationSharingViewerViewAction>
|
||||
@available(iOS 14, *)
|
||||
class LiveLocationSharingViewerViewModel: LiveLocationSharingViewerViewModelType, LiveLocationSharingViewerViewModelProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
-1
@@ -19,6 +19,5 @@ import Foundation
|
||||
protocol LiveLocationSharingViewerViewModelProtocol {
|
||||
|
||||
var completion: ((LiveLocationSharingViewerViewModelResult) -> Void)? { get set }
|
||||
@available(iOS 14, *)
|
||||
var context: LiveLocationSharingViewerViewModelType.Context { get }
|
||||
}
|
||||
|
||||
-1
@@ -19,7 +19,6 @@ import SwiftUI
|
||||
|
||||
/// 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 MockLiveLocationSharingViewerScreenState: MockScreenState, CaseIterable {
|
||||
// A case for each state you want to represent
|
||||
// with specific, minimal associated data that will allow you
|
||||
|
||||
-1
@@ -18,7 +18,6 @@ import Foundation
|
||||
import Combine
|
||||
import CoreLocation
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
protocol LiveLocationSharingViewerServiceProtocol {
|
||||
|
||||
/// All shared users live location
|
||||
|
||||
-1
@@ -18,7 +18,6 @@ import Foundation
|
||||
import CoreLocation
|
||||
import MatrixSDK
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class LiveLocationSharingViewerService: LiveLocationSharingViewerServiceProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
-1
@@ -18,7 +18,6 @@ import Foundation
|
||||
import Combine
|
||||
import CoreLocation
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class MockLiveLocationSharingViewerService: LiveLocationSharingViewerServiceProtocol {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
-1
@@ -17,7 +17,6 @@
|
||||
import XCTest
|
||||
import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class LiveLocationSharingViewerUITests: MockScreenTest {
|
||||
|
||||
override class var screenType: MockScreenState.Type {
|
||||
|
||||
-1
@@ -19,7 +19,6 @@ import Combine
|
||||
|
||||
@testable import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class LiveLocationSharingViewerViewModelTests: XCTestCase {
|
||||
|
||||
var service: MockLiveLocationSharingViewerService!
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct LiveLocationListItem: View {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -121,7 +120,6 @@ struct LiveLocationListItem: View {
|
||||
}
|
||||
}
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct LiveLocationListPreview: View {
|
||||
|
||||
let liveLocationSharingViewerService: LiveLocationSharingViewerServiceProtocol = MockLiveLocationSharingViewerService()
|
||||
@@ -181,7 +179,6 @@ struct LiveLocationListPreview: View {
|
||||
}
|
||||
}
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct LiveLocationListItem_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
|
||||
-3
@@ -17,7 +17,6 @@
|
||||
import SwiftUI
|
||||
import DSBottomSheet
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct LiveLocationSharingViewer: View {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -90,7 +89,6 @@ struct LiveLocationSharingViewer: View {
|
||||
}
|
||||
|
||||
// MARK: - Bottom sheet
|
||||
@available(iOS 14.0, *)
|
||||
extension LiveLocationSharingViewer {
|
||||
|
||||
var sheetStyle: BottomSheetStyle {
|
||||
@@ -119,7 +117,6 @@ extension LiveLocationSharingViewer {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct LiveLocationSharingViewer_Previews: PreviewProvider {
|
||||
static let stateRenderer = MockLiveLocationSharingViewerScreenState.stateRenderer
|
||||
static var previews: some View {
|
||||
|
||||
Reference in New Issue
Block a user