QuickLook media. (#447)

* Use QL previews for video and present full screen.
* Use URL(staticString:) in more places.
* Fix DesignKit issues.
This commit is contained in:
Doug
2023-01-12 17:37:33 +00:00
committed by GitHub
parent 3153c0f0d9
commit c383029203
20 changed files with 135 additions and 349 deletions
@@ -40,6 +40,7 @@ public struct ElementCapsuleButtonStyle: ButtonStyle {
.multilineTextAlignment(.center)
.background(background)
.opacity(configuration.isPressed ? 0.6 : 1)
.contentShape(Capsule())
}
@ViewBuilder
@@ -62,6 +62,7 @@ public struct ElementTextFieldStyle: TextFieldStyle {
configuration
.textFieldStyle(BorderedInputFieldStyle(isEditing: isFocused, isError: isError, returnKey: nil))
.focused($isFocused)
.onTapGesture { isFocused = true } // Set focus with taps in the space between the border and text field.
if let footerText {
Text(footerText)