Installation
Add DejavuSwift to your Xcode project or Swift Package Manager project.
Xcode Project
To add DejavuSwift to an Xcode project:
- In Xcode, select
File→Add Package Dependencies... - Enter the package URL:
https://github.com/revosystems/DejavuSwift - Select the version rule (e.g., "Up to Next Minor Version") and specify the version (e.g.,
v0.1.32) - Click
Add Package - Select the target where you want to add the dependency
- Click
Add Packageto complete the installation
Swift Package Manager (Package.swift)
To add DejavuSwift to a Swift Package Manager project, add it to the dependencies in your Package.swift
file:
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "YourPackage",
platforms: [
.iOS(.v15),
.macOS(.v11)
],
dependencies: [
.package(url: "https://github.com/revosystems/DejavuSwift", .upToNextMinor(from: "v0.1.32"))
],
targets: [
.target(
name: "YourTarget",
dependencies: [
.product(name: "DejavuSwift", package: "DejavuSwift")
]
)
]
)
Copied!
Then add the product to your target's dependencies array as shown above.
Import in Your Code
Once installed, import DejavuSwift in your Swift files:
import DejavuSwift
Copied!