We are proud to announce v0.2.1 of IcpKit.swift
for iOS with the following features :
.did
file parserCodeGenerator
to produce Swift code from any.did
fileCandidEncoder/Decoder
for converting anyCodable
Swift value to a Candid Value and vice versa
With these enhancements, the IcpKit.swift
Library can be used to interact with any ICP canister using native iOS methods and types.
Installation and Documentation
Installation instructions and more technical details can be found on our github.
Conversion rules between Swift and Candid
A comprehensive list of types as well notes regarding each type can be found in Swift/Candid conversion rules
Examples
For testing purposes, we provide a few real .did
files in our repo, as well as the generated swift code for them :