topBar.behaviorDefiner = SquareCashBarBehaviorDefiner()
scrollView.delegate = topBar.behaviorDefiner
even that I'm running this code the bar doesn't scroll to the final position.
I thought adding the following code could help:
topBar.behaviorDefiner?.addSnappingPositionProgress(1.0, _forProgressRangeStart: 0.5, end: 1.0)
topBar.behaviorDefiner?.addSnappingPositionProgress(0.0, _forProgressRangeStart: 0.0, end: 0.5)
But this code throws an exception (Idk how this is called in Swift, I'm Java developer mainly and learning Swift now) in the file FlexibleHeightBarBehaviourDefiner.swift in line 60, which runs the code
assert(noRangeConflict, self.snappingPositionAssertionMessage)
By printing the value of noRangeConflict I found out, that the value of noRangeConflict = false.
A fix or help about the usage of FlexibleHeightBar would be much appreciated.