SwiftFormat .

This commit is contained in:
Thomas Ricouard 2023-03-19 16:28:06 +01:00
parent 9a6b2129b2
commit df55028836
11 changed files with 50 additions and 52 deletions

View File

@ -364,7 +364,6 @@ struct AccountDetailHeaderView: View {
/// A ``ViewModifier`` that creates a attaches an accessibility action if the field value is a valid link
private struct ConditionalUserDefinedFieldAccessibilityActionModifier: ViewModifier {
let field: Account.Field
let routerPath: RouterPath

View File

@ -363,7 +363,7 @@ public struct AccountDetailView: View {
.accessibilityInputLabels([
LocalizedStringKey("accessibility.tabs.profile.options.label"),
LocalizedStringKey("accessibility.tabs.profile.options.inputLabel1"),
LocalizedStringKey("accessibility.tabs.profile.options.inputLabel2")
LocalizedStringKey("accessibility.tabs.profile.options.inputLabel2"),
])
}
}

View File

@ -1,7 +1,7 @@
import Foundation
import KeychainSwift
import SwiftUI
import Models
import SwiftUI
@MainActor
public enum DeepLUserAPIHandler {

View File

@ -111,10 +111,12 @@ class StatusDetailViewModel: ObservableObject {
func handleEvent(event: any StreamEvent, currentAccount: Account?) {
Task {
if let event = event as? StreamEventUpdate,
event.status.account.id == currentAccount?.id {
event.status.account.id == currentAccount?.id
{
await fetchStatusDetail(animate: true)
} else if let event = event as? StreamEventStatusUpdate,
event.status.account.id == currentAccount?.id {
event.status.account.id == currentAccount?.id
{
await fetchStatusDetail(animate: true)
} else if event is StreamEventDelete {
await fetchStatusDetail(animate: true)

View File

@ -204,7 +204,6 @@ public struct StatusRowView: View {
/// A ``ViewModifier`` that creates a suitable combined accessibility label for a `StatusRowView` that is not focused.
private struct ConditionalAccessibilityLabelModifier: ViewModifier {
@ObservedObject var viewModel: StatusRowViewModel
let setLabel: Bool

View File

@ -337,7 +337,6 @@ public struct StatusRowMediaPreviewView: View {
/// A ``ViewModifier`` that creates a suitable accessibility label for an image that may or may not have alt text
private struct ConditionalAccessibilityLabelAltTextModifier: ViewModifier {
let attachment: MediaAttachment
func body(content: Content) -> some View {
@ -349,4 +348,3 @@ private struct ConditionalAccessibilityLabelAltTextModifier: ViewModifier {
}
}
}