Transform strings easily in Swift.
Swift Package Manager (Recommended)
You can add this package to
Package.swift, include it in your target dependencies.
let package = Package( dependencies: [ .package(url: "https://github.com/uhooi/swift-string-transform", .upToNextMajor(from: "0.4.0")), ], targets: [ .target( name: "<your-target-name>", dependencies: ["StringTransform"]), ] )
You can add this package on Xcode.
This library is available through CocoaPods. To install it, simply add the following line to your
pod 'StringTransform', '~> 0.4.0'
This library is available through Carthage. To install it, simply add the following line to your
github "uhooi/swift-string-transform" ~> 0.4.0
How to use
You can just import
StringTransform to use it.
import StringTransform "てすと".toKatakana() // "テスト" "テスト".toHiragana() // "てすと"