Skip to content

Commit 70f161d

Browse files
committed
Seperate the aspect ratio override method implementation with others, since it return some View but not AnimatedImage
1 parent f7986ad commit 70f161d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SDWebImageSwiftUI/Classes/AnimatedImage.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ extension AnimatedImage {
495495
imageLayout.antialiased = isAntialiased
496496
return self
497497
}
498+
}
499+
500+
// Aspect Ratio
501+
extension AnimatedImage {
498502
/// Constrains this view's dimensions to the specified aspect ratio.
499503
/// - Parameters:
500504
/// - aspectRatio: The ratio of width to height to use for the resulting

0 commit comments

Comments
 (0)