Skip to content

Commit

Permalink
Changed FlowManager.currentIndex to be public get, private set (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
twomedia authored Sep 14, 2023
1 parent 2a93135 commit 66323ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Instructions/Managers/Public/FlowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ public class FlowManager {
/// `true` if coach marks are currently being displayed, `false` otherwise.
public var isStarted: Bool { return currentIndex > -1 }

/// The index (in `coachMarks`) of the coach mark being currently displayed.
private(set) public var currentIndex = -1

/// Sometimes, the chain of coach mark display can be paused
/// to let animations be performed. `true` to pause the execution,
/// `false` otherwise.
Expand Down Expand Up @@ -49,9 +52,6 @@ public class FlowManager {
/// `true` if a new coach mark can be shown, `false` otherwise.
private var canShowCoachMark = true

/// The index (in `coachMarks`) of the coach mark being currently displayed.
internal var currentIndex = -1

init(coachMarksViewController: CoachMarksViewController) {
self.coachMarksViewController = coachMarksViewController
}
Expand Down

0 comments on commit 66323ba

Please sign in to comment.