Skip to content

Commit cf1721d

Browse files
committed
Change the indicator method to access optionall value
1 parent d89ccbb commit cf1721d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SDWebImageSwiftUI/Classes/WebImage.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,12 @@ extension WebImage {
169169
}
170170
}
171171

172+
// Indicator
172173
extension WebImage {
173174

174175
/// Associate a indicator when loading image with url
175176
/// - Parameter indicator: The indicator type, see `Indicator`
176-
public func indicator(_ indicator: Indicator) -> WebImage {
177+
public func indicator(_ indicator: Indicator?) -> WebImage {
177178
var result = self
178179
result.indicator = indicator
179180
return result

0 commit comments

Comments
 (0)