Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created February 20, 2018 12:49
Show Gist options
  • Save vialyx/d453b69340ca24ef4772b48a908008df to your computer and use it in GitHub Desktop.
Save vialyx/d453b69340ca24ef4772b48a908008df to your computer and use it in GitHub Desktop.
self.maxDistance = maxDistance
let min: CGFloat = 100
if self.maxDistance > min {
self.minDistance = min
} else {
self.minDistance = self.maxDistance
}
self.zoomDistanceSlider.minimumValue = Float(self.minDistance)
self.zoomDistanceSlider.maximumValue = Float(self.maxDistance)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment