Full edit alt text
This commit is contained in:
parent
4ad2d2c633
commit
564046d0ba
|
@ -793,6 +793,13 @@ extension PostingView {
|
||||||
.focused($altFocused)
|
.focused($altFocused)
|
||||||
.frame(maxHeight: 200)
|
.frame(maxHeight: 200)
|
||||||
}
|
}
|
||||||
|
.onAppear {
|
||||||
|
if let mediaAttachment = container.mediaAttachment {
|
||||||
|
if let past = mediaAttachment.description, !past.isEmpty {
|
||||||
|
alt = past
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.navigationTitle(Text("posting.alt.header"))
|
.navigationTitle(Text("posting.alt.header"))
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
|
@ -813,6 +820,7 @@ extension PostingView {
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
HapticManager.playHaptics(haptics: Haptic.success)
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
if applying {
|
if applying {
|
||||||
|
|
Loading…
Reference in New Issue