Format
This commit is contained in:
parent
4266ac4b42
commit
32f96ac1ce
|
@ -278,7 +278,6 @@ struct BlurOverLay: View {
|
||||||
@Environment(UserPreferences.self) private var preferences
|
@Environment(UserPreferences.self) private var preferences
|
||||||
@Environment(\.isCompact) private var isCompact: Bool
|
@Environment(\.isCompact) private var isCompact: Bool
|
||||||
|
|
||||||
|
|
||||||
@Namespace var buttonSpace
|
@Namespace var buttonSpace
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
@ -289,7 +288,8 @@ struct BlurOverLay: View {
|
||||||
.background(.ultraThinMaterial)
|
.background(.ultraThinMaterial)
|
||||||
.frame(
|
.frame(
|
||||||
width: isFrameExpanded ? nil : 0,
|
width: isFrameExpanded ? nil : 0,
|
||||||
height: isFrameExpanded ? nil : 0)
|
height: isFrameExpanded ? nil : 0
|
||||||
|
)
|
||||||
if !isCompact {
|
if !isCompact {
|
||||||
Button {
|
Button {
|
||||||
withAnimation(.spring(duration: 0.2)) {
|
withAnimation(.spring(duration: 0.2)) {
|
||||||
|
@ -362,7 +362,7 @@ struct AltTextButton: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
if !isInCaptureMode,
|
if !isInCaptureMode,
|
||||||
let text = text,
|
let text,
|
||||||
!text.isEmpty,
|
!text.isEmpty,
|
||||||
!isCompact,
|
!isCompact,
|
||||||
preferences.showAltTextForMedia
|
preferences.showAltTextForMedia
|
||||||
|
@ -412,7 +412,7 @@ private struct DisplayData: Identifiable, Hashable {
|
||||||
|
|
||||||
id = attachment.id
|
id = attachment.id
|
||||||
self.url = url
|
self.url = url
|
||||||
self.previewUrl = attachment.previewUrl ?? attachment.url
|
previewUrl = attachment.previewUrl ?? attachment.url
|
||||||
description = attachment.description
|
description = attachment.description
|
||||||
self.type = DisplayType(from: type)
|
self.type = DisplayType(from: type)
|
||||||
accessibilityText = Self.getAccessibilityString(from: attachment)
|
accessibilityText = Self.getAccessibilityString(from: attachment)
|
||||||
|
@ -484,7 +484,7 @@ struct WrapperForPreview: View {
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
|
|
||||||
static private let url = URL(string: "https://www.upwork.com/catalog-images/c5dffd9b5094556adb26e0a193a1c494")!
|
private static let url = URL(string: "https://www.upwork.com/catalog-images/c5dffd9b5094556adb26e0a193a1c494")!
|
||||||
static private let attachment = MediaAttachment.imageWith(url: url)
|
private static let attachment = MediaAttachment.imageWith(url: url)
|
||||||
static private let local = Locale(identifier: "en")
|
private static let local = Locale(identifier: "en")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue