Skip to content

Commit 4fcf99f

Browse files
committed
Removed transition from placeholder image.
1 parent 185f0ba commit 4fcf99f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Sources/SwURL/Public/View/SwURLImage.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public struct SwURLImage: SwURLImageViewType {
4444
ZStack {
4545
if finalImage == nil {
4646
placeholderView
47-
.transition(transitionType.t)
4847
loadingIndicator
4948
}
5049
finalImage
@@ -57,7 +56,7 @@ public struct SwURLImage: SwURLImageViewType {
5756
remoteImage.load(url: url)
5857
}
5958
}
60-
.animation(transitionType.animation, value: remoteImage.imageStatus.index)
59+
.animation(transitionType.animation, value: remoteImage.imageStatus.identifier)
6160
}
6261

6362
public init(

Sources/SwURL/RemoteImage/Model/RemoteImage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ enum RemoteImageStatus: Equatable {
1515
case complete(result: CGImage)
1616
case progress(fraction: Float)
1717

18-
var index: Int {
18+
var identifier: Int {
1919
switch self {
2020
case .pending:
2121
return 0

0 commit comments

Comments
 (0)