samad5353 samad5353 - 1 year ago 109
iOS Question

How to get range of substring in swift3?

How to get range of substring in swift3?

let string = "Please Click Here"


I need range of click

Answer Source
let string = "Please Click Here"
if let range = string.range(of: "Click") {
   print(range)

}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download