My code:
for i:CGFloat in 0.stride(through: 100, by: spaceBetweenMarkers)
Error:
Cannot invoke 'stride' with an argument list of type '(through: CGFloat, by: CGFloat)'
How can I use for loop by using a CGFloat
value? I am using Swift 3. I want to iterate from 0 to 100 and pass a CGFloat
value.
prints