Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
The progress indicator bar style is only available on iOS
  • Loading branch information
dreampiggy committed Oct 28, 2019
commit 14bb4be6a8fb5b2b367a46b4151acadae4064877
4 changes: 3 additions & 1 deletion SDWebImageSwiftUI/Classes/Indicator/ProgressIndicator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct ProgressIndicator: PlatformViewRepresentable {
case .bar:
progressStyle = .bar
#endif
default:
case .default:
progressStyle = .default
}
let uiView = ProgressIndicatorWrapper()
Expand Down Expand Up @@ -99,7 +99,9 @@ public struct ProgressIndicator: PlatformViewRepresentable {
extension ProgressIndicator {
public enum Style {
case `default`
#if os(iOS)
case bar
#endif
}
}
#endif