FoundationExtensions
Introduction
Requirements
- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
- Xcode 8.1+
- Swift 3.0+
Installation
Carthage
You can use Carthage to install FoundationExtensions
by adding it to your Cartfile
:
github "nsagora/foundation-extensions"
Run carthage update
to build the framework and drag the built FoundationExtensions.framework
into your Xcode project.
Setting up Carthage
[Carthage][url-carthage] is a decentralised dependency manager that builds your dependencies and provides you with binary frameworks. You can install [Carthage][url-carthage] with [Homebrew][url-homebrew] using the following command: “`bash $ brew update $ brew install carthage ”`CocoaPods
You can use CocoaPods to install FoundationExtensions
by adding it to your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'YOUR_TARGET_NAME' do
pod 'FoundationExtensions'
end
Then, run the following command:
$ pod install
Note that this requires CocoaPods version 1.0.0, and your iOS deployment target to be at least 8.0.
Setting up CocoaPods
[CocoaPods][url-cocoapods] is a dependency manager for Cocoa projects. You can install it with the following command: “` $ gem install cocoapods ”`Swift Package Manager
You can use the Swift Package Manager to install FoundationExtensions
by adding it to your Package.swift
file:
import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.Package(url: "https://github.com/nsagora/foundation-extensions", majorVersion: 1),
]
)
Note that the Swift Package Manager is still in early design and development, for more information checkout its GitHub Page.
Manually
To use this library in your project manually you may:
- for Projects, just drag the
Sources
folder into the project tree - for Workspaces, include the whole
FoundationExtensions.xcodeproj
Usage example
Contribute
We would love you for the contribution to FoundationExtensions, check the LICENSE
file for more info.
Meta
This project is developed and maintained by the members of iOS NSAgora, the community of iOS Developers of Iași, Romania.
Distributed under the MIT license. See LICENSE
for more information.
[https://github.com/nsagora/foundation-extensions]