mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Remove all @available(iOS 14... annotations
This commit is contained in:
@@ -25,7 +25,6 @@ enum RoomAccessCoordinatorCoordinatorAction {
|
||||
}
|
||||
|
||||
@objcMembers
|
||||
@available(iOS 14.0, *)
|
||||
final class RoomAccessCoordinator: Coordinator {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
import UIKit
|
||||
import MatrixSDK
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
@objc protocol RoomAccessCoordinatorBridgePresenterDelegate {
|
||||
func roomAccessCoordinatorBridgePresenterDelegate(_ coordinatorBridgePresenter: RoomAccessCoordinatorBridgePresenter, didCancelRoomWithId roomId: String)
|
||||
func roomAccessCoordinatorBridgePresenterDelegate(_ coordinatorBridgePresenter: RoomAccessCoordinatorBridgePresenter, didCompleteRoomWithId roomId: String)
|
||||
@@ -27,7 +26,6 @@ import MatrixSDK
|
||||
/// It breaks the Coordinator abstraction and it has been introduced for Objective-C compatibility (mainly for integration in legacy view controllers).
|
||||
/// Each bridge should be removed once the underlying Coordinator has been integrated by another Coordinator.
|
||||
@objcMembers
|
||||
@available(iOS 14.0, *)
|
||||
final class RoomAccessCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -99,7 +97,6 @@ final class RoomAccessCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
// MARK: - UIAdaptivePresentationControllerDelegate
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
extension RoomAccessCoordinatorBridgePresenter: UIAdaptivePresentationControllerDelegate {
|
||||
|
||||
func roomNotificationSettingsCoordinatorDidComplete(_ presentationController: UIPresentationController) {
|
||||
|
||||
@@ -40,7 +40,6 @@ final class RoomAccessTypeChooserCoordinator: Coordinator, Presentable {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
init(parameters: RoomAccessTypeChooserCoordinatorParameters) {
|
||||
self.parameters = parameters
|
||||
let viewModel = RoomAccessTypeChooserViewModel(roomAccessTypeChooserService: RoomAccessTypeChooserService(roomId: parameters.roomId, allowsRoomUpgrade: parameters.allowsRoomUpgrade, session: parameters.session))
|
||||
|
||||
@@ -20,7 +20,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 MockRoomAccessTypeChooserScreenState: MockScreenState, CaseIterable {
|
||||
// A case for each state you want to represent
|
||||
// with specific, minimal associated data that will allow you
|
||||
|
||||
@@ -17,11 +17,9 @@
|
||||
import SwiftUI
|
||||
import Combine
|
||||
|
||||
@available(iOS 14, *)
|
||||
typealias RoomAccessTypeChooserViewModelType = StateStoreViewModel<RoomAccessTypeChooserViewState,
|
||||
RoomAccessTypeChooserStateAction,
|
||||
RoomAccessTypeChooserViewAction>
|
||||
@available(iOS 14.0, *)
|
||||
class RoomAccessTypeChooserViewModel: RoomAccessTypeChooserViewModelType, RoomAccessTypeChooserViewModelProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -18,7 +18,6 @@ import Foundation
|
||||
|
||||
protocol RoomAccessTypeChooserViewModelProtocol {
|
||||
var callback: ((RoomAccessTypeChooserViewModelAction) -> Void)? { get set }
|
||||
@available(iOS 14, *)
|
||||
var context: RoomAccessTypeChooserViewModelType.Context { get }
|
||||
|
||||
func handleRoomUpgradeResult(_ result: RoomUpgradeCoordinatorResult)
|
||||
|
||||
@@ -18,7 +18,6 @@ import Foundation
|
||||
import Combine
|
||||
import MatrixSDK
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class RoomAccessTypeChooserService: RoomAccessTypeChooserServiceProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class MockRoomAccessTypeChooserService: RoomAccessTypeChooserServiceProtocol {
|
||||
|
||||
static let mockAccessItems: [RoomAccessTypeChooserAccessItem] = [
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
protocol RoomAccessTypeChooserServiceProtocol {
|
||||
var accessItemsSubject: CurrentValueSubject<[RoomAccessTypeChooserAccessItem], Never> { get }
|
||||
var roomUpgradeRequiredSubject: CurrentValueSubject<Bool, Never> { get }
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
import XCTest
|
||||
import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class RoomAccessTypeChooserUITests: MockScreenTest {
|
||||
// Tests to be implemented.
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ import Combine
|
||||
|
||||
@testable import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class RoomAccessTypeChooserViewModelTests: XCTestCase {
|
||||
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct RoomAccessTypeChooser: View {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -84,7 +83,6 @@ struct RoomAccessTypeChooser: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct RoomAccessTypeChooser_Previews: PreviewProvider {
|
||||
|
||||
static let stateRenderer = MockRoomAccessTypeChooserScreenState.stateRenderer
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct RoomAccessTypeChooserRow: View {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -70,7 +69,6 @@ struct RoomAccessTypeChooserRow: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct RoomAccessTypeChooserRow_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
VStack {
|
||||
|
||||
@@ -24,7 +24,6 @@ class RoomRestrictedAccessSpaceChooserViewProvider: MatrixItemChooserCoordinator
|
||||
self.navTitle = navTitle
|
||||
}
|
||||
|
||||
@available(iOS 14, *)
|
||||
func view(with viewModel: MatrixItemChooserViewModelType.Context) -> AnyView {
|
||||
return AnyView(RoomRestrictedAccessSpaceChooserSelector(viewModel: viewModel, navTitle: navTitle))
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct RoomRestrictedAccessSpaceChooserSelector: View {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
Reference in New Issue
Block a user