Trying to make range work on IOS