mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -17,7 +17,7 @@ enum UserIndicatorType: Equatable {
|
||||
static var toast: Self {
|
||||
.toast(progress: .none)
|
||||
}
|
||||
|
||||
|
||||
static var modal: Self {
|
||||
.modal(progress: .indeterminate, interactiveDismissDisabled: false, allowsInteraction: false)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class UserIndicatorController: ObservableObject, UserIndicatorControllerProtocol
|
||||
guard delayedIndicators.contains(indicator.id) else {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
enqueue(indicator: indicator)
|
||||
}
|
||||
} else {
|
||||
@@ -85,7 +85,7 @@ class UserIndicatorController: ObservableObject, UserIndicatorControllerProtocol
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
|
||||
private func enqueue(indicator: UserIndicator) {
|
||||
retractIndicatorWithId(indicator.id)
|
||||
indicatorQueue.append(indicator)
|
||||
|
||||
@@ -13,7 +13,7 @@ import SwiftUI
|
||||
struct UserIndicatorModalView: View {
|
||||
let indicator: UserIndicator
|
||||
@State private var progressFraction = 0.0
|
||||
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
VStack(spacing: 12.0) {
|
||||
@@ -22,7 +22,7 @@ struct UserIndicatorModalView: View {
|
||||
} else if case .published = indicator.progress {
|
||||
ProgressView(value: progressFraction)
|
||||
}
|
||||
|
||||
|
||||
HStack(spacing: 8) {
|
||||
if let icon = indicator.icon {
|
||||
CompoundIcon(icon, size: iconSize, relativeTo: titleFont)
|
||||
|
||||
Reference in New Issue
Block a user