Skip to content
/ icu Public

swift package intended for windows users, to bring unicode support from the icu project (https://github.com/unicode-org/icu).

License

Notifications You must be signed in to change notification settings

wabiverse/icu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

International Components for Unicode

Intended for windows users, to bring unicode support in the form of a swift package for the icu project.

Usage

To use icu in swift, add icu as a package dependency in your project's Package.swift file.
dependencies: [
  .package(url: "https://github.com/wabiverse/icu.git", from: "76.1.0"),
]
Then, for any target you'd like, add the icu product as a target dependency, a complete example.
// swift-tools-version: 5.10
import PackageDescription

let package = Package(
  name: "MyPackage",
  products: [
    .library(
      name: "MyLibrary",
      targets: ["MyLibrary"]
    ),
  ],
  dependencies: [
    .package(url: "https://github.com/wabiverse/icu.git", from: "76.1.0")
  ],
  targets: [
    .target(
      name: "MyLibrary",
      dependencies: [
        /* add the icu product as a library dependency. */
        .product(name: "icuin", package: "icu"),
      ]
    ),
  ]
)


icu is licensed under the terms of the Unicode License v3.

About

swift package intended for windows users, to bring unicode support from the icu project (https://github.com/unicode-org/icu).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages