mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Run swiftformat 0.52.0 (#1491)
This commit is contained in:
@@ -48,7 +48,7 @@ extension SessionVerificationControllerProxyMock {
|
|||||||
|
|
||||||
Task.detached {
|
Task.detached {
|
||||||
try await Task.sleep(for: requestDelay)
|
try await Task.sleep(for: requestDelay)
|
||||||
mock.callbacks.send(.receivedVerificationData(Self.emojis))
|
mock.callbacks.send(.receivedVerificationData(emojis))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ struct InviteUsersScreenSelectedItem_Previews: PreviewProvider {
|
|||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
ScrollView(.horizontal) {
|
ScrollView(.horizontal) {
|
||||||
HStack(spacing: 28) {
|
HStack(spacing: 28) {
|
||||||
ForEach(Self.people, id: \.userID) { user in
|
ForEach(people, id: \.userID) { user in
|
||||||
InviteUsersScreenSelectedItem(user: user, imageProvider: MockMediaProvider(), dismissAction: { })
|
InviteUsersScreenSelectedItem(user: user, imageProvider: MockMediaProvider(), dismissAction: { })
|
||||||
.frame(width: 72)
|
.frame(width: 72)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,8 +112,8 @@ private extension UIApplication {
|
|||||||
/// Application instance extension-safe. Will be `nil` on app extensions.
|
/// Application instance extension-safe. Will be `nil` on app extensions.
|
||||||
static var extensionSafeShared: UIApplication? {
|
static var extensionSafeShared: UIApplication? {
|
||||||
let selector = NSSelectorFromString("sharedApplication")
|
let selector = NSSelectorFromString("sharedApplication")
|
||||||
guard Self.responds(to: selector) else { return nil }
|
guard responds(to: selector) else { return nil }
|
||||||
return Self.perform(selector).takeUnretainedValue() as? UIApplication
|
return perform(selector).takeUnretainedValue() as? UIApplication
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class MockClientProxy: ClientProxyProtocol {
|
|||||||
|
|
||||||
var isSyncing: Bool { false }
|
var isSyncing: Bool { false }
|
||||||
|
|
||||||
internal init(userID: String, deviceID: String? = nil, roomSummaryProvider: RoomSummaryProviderProtocol? = MockRoomSummaryProvider()) {
|
init(userID: String, deviceID: String? = nil, roomSummaryProvider: RoomSummaryProviderProtocol? = MockRoomSummaryProvider()) {
|
||||||
self.userID = userID
|
self.userID = userID
|
||||||
self.deviceID = deviceID
|
self.deviceID = deviceID
|
||||||
self.roomSummaryProvider = roomSummaryProvider
|
self.roomSummaryProvider = roomSummaryProvider
|
||||||
|
|||||||
Reference in New Issue
Block a user