Open Jasonvdb opened 6 months ago
Script for building a xcframework so Pkarr can be used in any swift project.
Still need to create a uniffi export in ffi/src/lib.rs for each function you want to expose and handle errors properly.
ffi/src/lib.rs
sh ffi/scripts/build_swift.sh
Drag ffi/bindings/pkarrbindings.swift and ffi/swift/Pkarr.xcframework into your xcode project and use:
ffi/bindings/pkarrbindings.swift
ffi/swift/Pkarr.xcframework
let record = await resolve(publicKey: "pk:o4dksfbqk85ogzdb5osziw6befigbuxmuxkuxq8434q89uj56uyy")
Example app here: https://github.com/Jasonvdb/pkarr-ios/
Script for building a xcframework so Pkarr can be used in any swift project.
Still need to create a uniffi export in
ffi/src/lib.rs
for each function you want to expose and handle errors properly.Drag
ffi/bindings/pkarrbindings.swift
andffi/swift/Pkarr.xcframework
into your xcode project and use:Example app here: https://github.com/Jasonvdb/pkarr-ios/![Simulator Screenshot - iPhone 15 - 2024-02-22 at 21 08 18](https://github.com/Nuhvi/pkarr/assets/5300488/a248c004-5dc2-4125-9dc9-bb8c89b40f1c)