Full edit alt text

This commit is contained in:
Lumaa 2024-08-09 02:03:51 +02:00
parent 4ad2d2c633
commit 564046d0ba
1 changed files with 8 additions and 0 deletions

View File

@ -793,6 +793,13 @@ extension PostingView {
.focused($altFocused)
.frame(maxHeight: 200)
}
.onAppear {
if let mediaAttachment = container.mediaAttachment {
if let past = mediaAttachment.description, !past.isEmpty {
alt = past
}
}
}
.navigationTitle(Text("posting.alt.header"))
.navigationBarTitleDisplayMode(.inline)
.toolbar {
@ -813,6 +820,7 @@ extension PostingView {
dismiss()
}
}
HapticManager.playHaptics(haptics: Haptic.success)
}
} label: {
if applying {