Contents

migueldeicaza/skiakit

> [Go to macOS / iOS / tvOS](#apple) | [Go to Linux](#linux)

Getting this to work

Apple

Supports:

  • x86_64 Mac: anything from 2008 MacBook to M1 (using x86 emulation)
  • arm64 iPhone: anything past iPhone 5S
  • arm64 iPad: anything past iPad Air / iPad mini 2 (post-2013)
  • iPhone Simulator
  • iPad Simulator
  • tvOS

Not currently supported:

  • Mac Catalyst
Recommended usage

You can add SkiaKit to your project by putting this dependency in your Package.swift:

.package(url: "https://github.com/migueldeicaza/SkiaKit.git", from: "1.0.0")
 ```

#### Using manually

If using manually, you'll need to download and assemble the `SkiaSharp.xcframework` required.

This must be ran on macOS with the [Command Line Tools for XCode](https://developer.apple.com/downloads/) installed.

git clone https://github.com/migueldeicaza/SkiaKit.git cd SkiaKit make download-payload


### Linux

SkiaKit is platform agnostic and makes a best-effort support for
Linux. An `.so` for the SkiaSharp library is included and supports
[the following Linux distributions](https://github.com/mono/SkiaSharp/issues/453).

The `libSkiaSharp.so` file will need to be distributed alongside your project.

#### Recommended usage

You can add SkiaKit to your project by putting this dependency in your `Package.swift`:

.package(url: "https://github.com/migueldeicaza/SkiaKit.git", .branch("generated"))


#### Using manually

If using manually, you'll need to provide `libSkiaSharp.so` in the
root of the `SkiaKit` folder. For [certain Linux distros](https://github.com/mono/SkiaSharp/issues/453),
a convenience script is provided.

This script requires `curl` and `unzip`.

git clone https://github.com/migueldeicaza/SkiaKit.git cd SkiaKit make download-payload-linux

Package Metadata

Repository: migueldeicaza/skiakit

Default branch: main

README: README.md