I am trying to convert this code block to work in swift 3.
let grainSize = CGFloat(0.01)
let min = CGFloat(-3)
let max = CGFloat(3)
let range = Range<Int>(start: Int(min/grainSize), end: Int(max/grainSize))
The issue I am facing is with the Range - I have tried to look through apple docs, but don't really know what I'm even looking for. The issue that it reports is that it says that
Cannot convert value of type 'Int' to expected argument type 'NSRange' (aka '_NSRange')
Can anyone help help me understand what is going on here and where/what documentation I can read to make sense of this?