Skip to content

Commit 14bb4be

Browse files
committed
The progress indicator bar style is only available on iOS
1 parent a6a6d58 commit 14bb4be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SDWebImageSwiftUI/Classes/Indicator/ProgressIndicator.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public struct ProgressIndicator: PlatformViewRepresentable {
3535
case .bar:
3636
progressStyle = .bar
3737
#endif
38-
default:
38+
case .default:
3939
progressStyle = .default
4040
}
4141
let uiView = ProgressIndicatorWrapper()
@@ -99,7 +99,9 @@ public struct ProgressIndicator: PlatformViewRepresentable {
9999
extension ProgressIndicator {
100100
public enum Style {
101101
case `default`
102+
#if os(iOS)
102103
case bar
104+
#endif
103105
}
104106
}
105107
#endif

0 commit comments

Comments
 (0)