Welcome to the eggy iOS SDK!
Check out our official documentation for in-depth information on installing and using eggy on iOS.
The eggy SDK for iOS is written in Swift, and is compatible with applications written in either Swift or Objective-C. See inline code samples throughout the documentation for use with either language.
We support multiple methods for installing the eggy-ios
library in a project. Once installed, head over to the SDK documentation for complete instructions on getting started with using the SDK.
The Swift Package Manager is a dependency manager integrated into the swift
compiler and Xcode.
To integrate eggy-ios
into an Xcode project, go to the project editor, and select Swift Packages
. From here hit the +
button and follow the prompts using https://github.com/eggybytes/eggy-ios.git
as the URL.
To include eggy-ios
in a Swift package, simply add it to the dependencies section of your Package.swift
file, and add the product "eggy-ios" as a dependency for your targets.
dependencies: [
.package(url: "https://github.com/eggybytes/eggy-ios.git", .upToNextMinor(from: "1.0.2"))
]
To use the CocoaPods dependency manager to integrate eggy-ios
into your Xcode project, specify it in your Podfile
:
use_frameworks!
target 'YourTargetName' do
pod 'eggy-ios', '~> 1.0.2'
end
To use the Carthage dependency manager to integrate eggy-ios
into your Xcode project, specify it in your Cartfile
:
github "eggybytes/eggy-ios" ~> 1.0.2
If you prefer not to use the aforementioned dependency managers, it is possible to integrate the SDK manually.
- On the root folder of the project retreive the SDK by either:
- Adding the SDK as a git submodule with
git submodule add https://github.com/eggybytes/eggy-ios.git
. - OR cloning the SDK with
git clone https://github.com/eggybytes/ieggy-ios.git
.
- Adding the SDK as a git submodule with
- Open the new
eggy-ios
folder and drageggy-ios.xcodeproj
into the project navigator of your application's Xcode project. It should appear nested within your application's blue project icon. - Select your application project in the project navigator (blue icon) and select your application target under the "Targets" heading in the sidebar. If you have multiple targets, perform the following steps for each target.
- Select the "General" tab, and if necessary expand the subsection "Frameworks, Libraries, and Embedded Content".
- Click the "+" button in the expanded subsection. Under "eggy-ios" within the dialog, select
eggy_ios.framework
.
Check out our documentation for in-depth instructions on configuring and using eggy. You can also head straight to the complete reference guide for this SDK.