Kin SDK iOS
使用 Kin SDK for iOS 在您的应用中启用 Kin 的使用。仅包括您需要以提供适当体验给用户的功能。仅使用基本库来访问 Kin 加密货币的最轻量级包装。
库 | 路径 | 描述 |
---|---|---|
Kin |
/KinBase |
系统内所有其他库支持基本 Kin 操作所使用的根基库
|
KinBaseCompat |
/KinBaseCompat |
KinBaseCompat 库实现了公开的表层以作为已弃用 kin-sdk-ios 库的替换。只需更新您的 Podfile 版本,并拥有更好的性能和稳定性。 |
KinDesign |
/KinDesign |
为创建一致的 Kin 用户体验共享 KinDesign 库组件。在创建自定义 Kin 体验时,此库可用于包括标准 UI 组件以显示 Kin 价格、交易等。 |
KinUX |
/KinUX |
KinUX 库提供了一个开箱即用的模型 UI,用于在 iOS 应用程序内消费 Kin。指定您要购买的商品、您的账户、点击确认。成功。 |
有关即将到来的 Solana 迁移的说明(2020 年 12 月 8 日)
请参阅 KinBase 或 KinBaseCompat 了解每个模块相关的特定迁移详情。
安装
您的 Podfile 中
// *** KinBaseCompat is for LEGACY SUPPORT ONLY ***
// If you're a longtime Kin developer and want to use the compat
// interface that looks like the now deprecated SDKs
pod 'KinBaseCompat', '~> 0.4.5'
// If you're a new developer or want more functionality you want a
// mix of the libraries below:
// If you just want to access the blockchain & no UI
pod 'KinBase', '~> 0.4.5'
// Add spend to use the modal spend flow to allow users to buy things with Kin
pod 'KinUX', '~> 0.4.5'
// Add design for direct access to UI views you can use in your own app
pod 'KinDesign', '~> 0.4.5'
示例应用
/KinSampleApp
目录包含示例应用程序。在示例应用的首页,您可以查看 Kin 钱包演示和 Kin 设计演示选项。
文档
所有模块中所有类的 Jazzy 文档位于此处