hallee/swift-smart-quotes
A simple Swift `String` extension for converting straight apostrophes and quotes in to typographically correct curly versions.
Usage
import SmartQuotes
"\"Crime peaked in the '90s\"".withSmartQuotes // “Crime peaked in the ’90s”
"\"Crime peaked in the '90s\"".withSmartQuotes( // „Crime peaked in the ‘90s“
Locale(identifier: "de")
)Installation
Carthage
# Cartfile
github "hallee/swift-smart-quotes" ~> 0.0.1CocoaPods
# Podfile
pod 'SmartQuotes'SwiftPM
dependencies: [
.package(url: "https://github.com/hallee/swift-smart-quotes", from: "0.0.1")
],
targets: [
.target(name: "YourTarget", dependencies: ["SmartQuotes"])
]TODO
- [ ] Localizations
Package Metadata
Repository: hallee/swift-smart-quotes
Default branch: master
README: README.md