Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod crashing with and without PBTrackConfiguration #2

Open
AdnanAli285 opened this issue Oct 23, 2021 · 0 comments
Open

Pod crashing with and without PBTrackConfiguration #2

AdnanAli285 opened this issue Oct 23, 2021 · 0 comments

Comments

@AdnanAli285
Copy link

Error: Thread 1: Fatal error: Range requires lowerBound <= upperBound

I am facing an error while using your pod.
Screenshot 2021-10-23 at 9 26 09 PM

my code:

let trackConfig = PBTrackConfiguration(
       roundingCorners: [.allCorners],
       cornerRadii: CGSize(width: 8, height: 8),
       edgeInsets: UIEdgeInsets(top: 2.5, left: 2.5, bottom: 2.5, right: 2.5)
   )

   lazy var progressBar: ProgressBar = {
       ProgressBar(trackColour: [.black], barColour: [.purple], configurations: [.track: trackConfig])
   }()
   
   override func awakeFromNib() {
       super.awakeFromNib()
       progressBar.setupProgressBar(in: progressContainerView)
       progressBar.setProgressBarValue(to: 0.75)
   }

logs:

Swift/x86_64-apple-ios-simulator.swiftinterface:5670: Fatal error: Range requires lowerBound <= upperBound
2021-10-23 21:22:51.270599+0500 WarriorRising[18246:734521] Swift/x86_64-apple-ios-simulator.swiftinterface:5670: Fatal error: Range requires lowerBound <= upperBound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant