mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
+1
-1
@@ -1,6 +1,6 @@
|
||||
// File created from TemplateAdvancedRoomsExample
|
||||
// $ createSwiftUITwoScreen.sh Spaces/SpaceCreation SpaceCreation SpaceCreationMenu SpaceCreationSettings
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// File created from TemplateAdvancedRoomsExample
|
||||
// $ createSwiftUITwoScreen.sh Spaces/SpaceCreation SpaceCreation SpaceCreationMenu SpaceCreationSettings
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -38,4 +38,4 @@ struct SpaceCreationMenuRoomOption {
|
||||
let detail: String
|
||||
}
|
||||
|
||||
extension SpaceCreationMenuRoomOption: Identifiable, Equatable {}
|
||||
extension SpaceCreationMenuRoomOption: Identifiable, Equatable { }
|
||||
|
||||
+2
-3
@@ -1,6 +1,6 @@
|
||||
// File created from TemplateAdvancedRoomsExample
|
||||
// $ createSwiftUITwoScreen.sh Spaces/SpaceCreation SpaceCreation SpaceCreationMenu SpaceCreationSettings
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -19,5 +19,4 @@
|
||||
import Foundation
|
||||
|
||||
/// Actions to be performed on the `ViewModel` State
|
||||
enum SpaceCreationMenuStateAction {
|
||||
}
|
||||
enum SpaceCreationMenuStateAction { }
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// File created from TemplateAdvancedRoomsExample
|
||||
// $ createSwiftUITwoScreen.sh Spaces/SpaceCreation SpaceCreation SpaceCreationMenu SpaceCreationSettings
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// File created from TemplateAdvancedRoomsExample
|
||||
// $ createSwiftUITwoScreen.sh Spaces/SpaceCreation SpaceCreation SpaceCreationMenu SpaceCreationSettings
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// File created from TemplateAdvancedRoomsExample
|
||||
// $ createSwiftUITwoScreen.sh Spaces/SpaceCreation SpaceCreation SpaceCreationMenu SpaceCreationSettings
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
+17
-7
@@ -1,4 +1,4 @@
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -28,26 +28,31 @@ class SpaceCreationParameters {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
|
||||
var topic: String? {
|
||||
didSet {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
|
||||
var address: String? {
|
||||
didSet {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
|
||||
var userDefinedAddress: String? {
|
||||
didSet {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
var isPublic: Bool = false {
|
||||
|
||||
var isPublic = false {
|
||||
didSet {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
|
||||
var showAddress: Bool {
|
||||
isPublic
|
||||
}
|
||||
@@ -57,7 +62,8 @@ class SpaceCreationParameters {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
var isShared: Bool = false {
|
||||
|
||||
var isShared = false {
|
||||
didSet {
|
||||
isModified = true
|
||||
}
|
||||
@@ -84,22 +90,26 @@ class SpaceCreationParameters {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
|
||||
var userDefinedEmailInvites: [String] {
|
||||
return emailInvites.filter { address in
|
||||
return !address.isEmpty
|
||||
emailInvites.filter { address in
|
||||
!address.isEmpty
|
||||
}
|
||||
}
|
||||
|
||||
var userIdInvites: [String] = [] {
|
||||
didSet {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
|
||||
var inviteType: SpaceCreationInviteType = .email {
|
||||
didSet {
|
||||
isModified = true
|
||||
}
|
||||
}
|
||||
var isModified: Bool = false
|
||||
|
||||
var isModified = false
|
||||
}
|
||||
|
||||
struct SpaceCreationNewRoom: Equatable {
|
||||
@@ -107,6 +117,6 @@ struct SpaceCreationNewRoom: Equatable {
|
||||
var defaultName: String
|
||||
|
||||
static func == (lhs: Self, rhs: Self) -> Bool {
|
||||
return lhs.defaultName == rhs.defaultName && lhs.name == rhs.name
|
||||
lhs.defaultName == rhs.defaultName && lhs.name == rhs.name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user