mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-28 21:39:18 +01:00
SwiftFormat .
This commit is contained in:
parent
9a6b2129b2
commit
df55028836
@ -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
|
||||
|
||||
|
@ -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"),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import Foundation
|
||||
import KeychainSwift
|
||||
import SwiftUI
|
||||
import Models
|
||||
import SwiftUI
|
||||
|
||||
@MainActor
|
||||
public enum DeepLUserAPIHandler {
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user