Swiftpack.co - YOCKOW/SwiftUnicodeSupplement as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
YOCKOW/SwiftUnicodeSupplement 1.1.0
Unicode Supplement for Swift.
⭐️ 0
🕓 3 weeks ago
.package(url: "https://github.com/YOCKOW/SwiftUnicodeSupplement.git", from: "1.1.0")

What is SwiftUnicodeSupplement?

SwiftUnicodeSupplement adds some additional functions to Unicode(.Scalar). Although SE-0211 is already implemented in Swift 5.0, some features (such as IDNAStatus) implemented in this library may be useful.


  • Swift 5 (including compatibility mode for Swift 4 or 4.2)
  • macOS or Linux


import UnicodeSupplement

let a: Unicode.Scalar = "a"

print(a.latestProperties.bidiClass == .leftToRight)
// -> true

print(a.latestProperties.canonicalCombiningClass == .notReordered)
// -> true

// -> false

// -> true

print(a.latestProperties.generalCategory == .lowercaseLetter)
// -> true

print(a.latestProperties.joiningGroup == .noJoiningGroup)
// -> true

print(a.latestProperties.joiningType == .nonJoining)
// -> true

print(a.latestProperties.script == .latin)
// -> true

// -> false

// -> true


You can run ./utils/update to update properties.


MIT License.
See "LICENSE.txt" for more information.


Stars: 0
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.


Release Notes

Release v1.1.0
3 weeks ago

Update Unicode to 14.0.0.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics