mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 07:27:42 +02:00
Remove all @available(iOS 14... annotations
This commit is contained in:
-1
@@ -38,7 +38,6 @@ final class SpaceCreationEmailInvitesCoordinator: Coordinator, Presentable {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
init(parameters: SpaceCreationEmailInvitesCoordinatorParameters) {
|
||||
self.parameters = parameters
|
||||
let service = SpaceCreationEmailInvitesService(session: parameters.session)
|
||||
|
||||
-1
@@ -19,7 +19,6 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class SpaceCreationEmailInvitesService: SpaceCreationEmailInvitesServiceProtocol {
|
||||
|
||||
private let session: MXSession
|
||||
|
||||
-1
@@ -21,7 +21,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 MockSpaceCreationEmailInvitesScreenState: MockScreenState, CaseIterable {
|
||||
// A case for each state you want to represent
|
||||
// with specific, minimal associated data that will allow you
|
||||
|
||||
-1
@@ -19,7 +19,6 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class MockSpaceCreationEmailInvitesService: SpaceCreationEmailInvitesServiceProtocol {
|
||||
var isLoadingSubject: CurrentValueSubject<Bool, Never>
|
||||
|
||||
|
||||
-1
@@ -19,7 +19,6 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
protocol SpaceCreationEmailInvitesServiceProtocol {
|
||||
var isIdentityServiceReady: Bool { get }
|
||||
var isLoadingSubject: CurrentValueSubject<Bool, Never> { get }
|
||||
|
||||
-1
@@ -19,7 +19,6 @@
|
||||
import XCTest
|
||||
import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class SpaceCreationEmailInvitesUITests: MockScreenTest {
|
||||
|
||||
override class var screenType: MockScreenState.Type {
|
||||
|
||||
-1
@@ -21,7 +21,6 @@ import Combine
|
||||
|
||||
@testable import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class SpaceCreationEmailInvitesViewModelTests: XCTestCase {
|
||||
var creationParameters = SpaceCreationParameters()
|
||||
var service: MockSpaceCreationEmailInvitesService!
|
||||
|
||||
-2
@@ -18,7 +18,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct SpaceCreationEmailInvites: View {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -114,7 +113,6 @@ struct SpaceCreationEmailInvites: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct SpaceCreationEmailInvites_Previews: PreviewProvider {
|
||||
static let stateRenderer = MockSpaceCreationEmailInvitesScreenState.stateRenderer
|
||||
static var previews: some View {
|
||||
|
||||
-2
@@ -19,11 +19,9 @@
|
||||
import SwiftUI
|
||||
import Combine
|
||||
|
||||
@available(iOS 14, *)
|
||||
typealias SpaceCreationEmailInvitesViewModelType = StateStoreViewModel<SpaceCreationEmailInvitesViewState,
|
||||
SpaceCreationEmailInvitesStateAction,
|
||||
SpaceCreationEmailInvitesViewAction>
|
||||
@available(iOS 14, *)
|
||||
class SpaceCreationEmailInvitesViewModel: SpaceCreationEmailInvitesViewModelType, SpaceCreationEmailInvitesViewModelProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
-1
@@ -21,6 +21,5 @@ import Foundation
|
||||
protocol SpaceCreationEmailInvitesViewModelProtocol {
|
||||
|
||||
var completion: ((SpaceCreationEmailInvitesViewModelResult) -> Void)? { get set }
|
||||
@available(iOS 14, *)
|
||||
var context: SpaceCreationEmailInvitesViewModelType.Context { get }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user