Can someone give me a hint which Range property is the equivalent property of the NSRange location property.
I'm especially interested in how I would wrap the next line of code from Swift 2.3 -> Swift 3.0
if myRange.location != NSNotFound { ... }
myRange is still a Range property, so the compiler tells me correctly: A value of type Range does not have a member location
Is checking an empty property enough?
if !myRange.isEmpty { ... }
Thanks in advance
swift3 range nsrange
matzino
source share