Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 1.42 KB

README.md

File metadata and controls

68 lines (54 loc) · 1.42 KB

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.