Skip to content

Commit

Permalink
Convert stored properties into computed properties (#295)
Browse files Browse the repository at this point in the history
Addresses a compiler error in Xcode 15.0 Beta
  • Loading branch information
galijot authored Jun 9, 2023
1 parent 682e0c7 commit 2a93135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Sources/Instructions/Managers/Public/FlowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ public class FlowManager {

// MARK: Renamed Public Properties
@available(*, unavailable, renamed: "isStarted")
public var started: Bool = false
public var started: Bool { return false }

@available(*, unavailable, renamed: "isPaused")
public var paused: Bool = false
public var paused: Bool { return false }
}

extension FlowManager: CoachMarksViewControllerDelegate {
Expand Down
8 changes: 4 additions & 4 deletions Sources/Instructions/Managers/Public/OverlayManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,16 @@ public class OverlayManager {

// MARK: Renamed Public Properties
@available(*, unavailable, renamed: "backgroundColor")
public var color: UIColor = InstructionsColor.overlay
public var color: UIColor { return InstructionsColor.overlay }

@available(*, unavailable, renamed: "isUserInteractionEnabled")
public var allowTap: Bool = true
public var allowTap: Bool { return true }

@available(*, unavailable, renamed: "isUserInteractionEnabledInsideCutoutPath")
public var allowTouchInsideCutoutPath: Bool = false
public var allowTouchInsideCutoutPath: Bool { return false }

@available(*, unavailable, renamed: "areTouchEventsForwarded")
public var forwardTouchEvents: Bool = false
public var forwardTouchEvents: Bool { return false }
}

// swiftlint:disable class_delegate_protocol
Expand Down

0 comments on commit 2a93135

Please sign in to comment.