Install and start using Gravatar for iOS
- File > Add Package Dependency
- Search by https://github.com/Automattic/Gravatar-SDK-iOS.git
- Click on Add Package
For more info, check the Apple Docs.
- Add the
Gravatar-SDK-iOS
as a dependency of your project. Recommended to use the latest tagged version. - Add the
Gravatar
product as a dependency of your target.
let package = Package(
name: "Package Name",
dependencies: [
// 1.
.package(url: "https://github.com/Automattic/Gravatar-SDK-iOS.git", from: "x.y.z")
],
targets: [
.executableTarget(
name: "Target Name",
dependencies: [
// 2.
.product(name: "Gravatar", package: "Gravatar")
]
)
]
)
Add pod 'Gravatar'
to your target in your PODFILE
.
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'MyApp' do
pod 'Gravatar'
end
@Links(visualStyle: list) { - doc:2.-DownloadingAvatar - doc:3.-UploadingAvatar - doc:4.-FetchingProfile }