**Update: **
The process for turning off Siri depends on the device you are using. Here are the general steps for different devices:
On an iPhone or iPad:
Go to Settings.
Scroll down and tap Siri & Search.
Toggle off the switch next to "Listen for 'Hey Siri'" to turn off Siri completely, or toggle off the switch next to "Press Side Button for Siri" to disable the Siri activation method.
On a Mac:
Click on the Apple menu and select System Preferences.
Click on Siri.
Deselect the checkbox next to "Enable Siri" to turn off Siri.
On an Apple Watch:
Press the Digital Crown to go to the home screen.
Tap the Settings app.
Tap Siri.
Toggle off the switch next to "Hey Siri" to turn off Siri completely, or toggle off the switch next to "Raise to Speak" to disable the Siri activation method.
Once you have turned off Siri, you can turn it back on by following the same steps and toggling the switch back on.
Post
Replies
Boosts
Views
Activity
Swift example of how to fix this:
extension String {
var urlEncoded: String? {
let allowedCharacterSet = CharacterSet.alphanumerics.union(CharacterSet(charactersIn: "~-_."))
return self.addingPercentEncoding(withAllowedCharacters: allowedCharacterSet)
}
}
print("https://www.robinrendle.com/notes/i-don't-believe-in-sprints/".urlEncoded!)
// prints https%3A%2F%2Fwww.robinrendle.com%2Fnotes%2Fi-don%27t-believe-in-sprints%2F
Credit to: https://stackoverflow.com/questions/24551816/swift-encode-url