Skip to content

Commit

Permalink
Make onTimer public
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksproger committed Jan 28, 2024
1 parent 104a7ab commit 21f394b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/CircularProgressStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public protocol CircularProgressStyle {
}

public struct CircularProgressStyleConfiguration<State: RawRepresentable> where State.RawValue: BinaryFloatingPoint {
let lineWidth: CGFloat
let state: State
public let lineWidth: CGFloat
public let state: State

public init(
lineWidth: CGFloat,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct OnTimer: ViewModifier {

/// Syntax sugar for `ViewModifier`, based on Apple recomendations.
extension View {
func onTimer(
public func onTimer(
_ interval: TimeInterval = 0.1,
_ block: @escaping () -> Void
) -> some View {
Expand Down

0 comments on commit 21f394b

Please sign in to comment.