Skip to content

Commit 989ab09

Browse files
committed
Fixed background color
1 parent bf845e4 commit 989ab09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/ImageViewerRemote/ImageViewerRemote.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ public struct ImageViewerRemote: View {
9191
}
9292
)
9393
}
94-
.frame(maxWidth: .infinity, maxHeight: .infinity)
95-
.background(Color(red: 0.12, green: 0.12, blue: 0.12, opacity: (1.0 - Double(abs(self.dragOffset.width) + abs(self.dragOffset.height)) / 1000)).edgesIgnoringSafeArea(.all))
96-
.zIndex(1)
9794
}
9895
else {
9996
if loader.image != nil {
@@ -118,10 +115,13 @@ public struct ImageViewerRemote: View {
118115
)
119116
}
120117
else {
121-
Text("Loading...")
118+
Text(":/")
122119
}
123120
}
124121
}
122+
.frame(maxWidth: .infinity, maxHeight: .infinity)
123+
.background(Color(red: 0.12, green: 0.12, blue: 0.12, opacity: (1.0 - Double(abs(self.dragOffset.width) + abs(self.dragOffset.height)) / 1000)).edgesIgnoringSafeArea(.all))
124+
.zIndex(1)
125125
}
126126
.transition(AnyTransition.opacity.animation(.easeInOut(duration: 0.2)))
127127
.onAppear() {

0 commit comments

Comments
 (0)