Done fixing typos
cd <project-folder>
open Package.swift
Keychain uses the official SwiftPM manifest format for specifying dependencies. So in order to add a dependency, you will need to do two things:
Keychain
.package
dependencies
Package
dependencies: [ .package(url: "https://github.com/IBM/ios-keychain", from: "1.0.0"), ]
Use Keychain in order to store eider passowrds or certificates
public static func storeCertificate(_ data: Data, for key: String, dependencies: Dependencies) throws public static func deleteCertificate(for key: String, dependencies: Dependencies) throws public static func fetchCertificate(for key: String, dependencies: Dependencies) throws -> Data?
public static func storePassword(_ data: Data, for key: String, dependencies: Dependencies) throws public static func deletePassword(for key: String, dependencies: Dependencies) throws public static func fetchPassword(for key: String, dependencies: Dependencies) throws -> Data?
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Keychain
Development Setup
cd <project-folder>
open Package.swift
Usage
Keychain
uses the official SwiftPM manifest format for specifying dependencies. So in order to add a dependency, you will need to do two things:.package
entry to thedependencies
array of yourPackage
dependencies
section of the appropriate target(s)Use
Keychain
in order to store eider passowrds or certificatesCertificates
Passwords