/iOS_Toolbox

A bunch iOS components

Primary LanguageSwiftMIT LicenseMIT

Shakuro iOS Toolbox

Version Platform License MIT

Toolbox contains various components written in Swift.

Component List

  • Device
    • DeviceType - A helper for detecting model of the device/simulator.
    • DeviceOrientationListener - The alternative for UIDevice.current.orientation.
  • Extensions - Various extensions with small helper functions.
  • ImageProcessing
    • ImageProcessor - A helper for CGImage and UIImage.
  • Keychain
    • KeychainWrapper - A wrapper to easily add, remove, or get Codable object to/from Keychain.
  • Keyboard
    • KeyboardHandler - A wrapper around keyboard notifications.
  • PlaceholderTextView - A UITextView subclass with a placeholder feature and the ability to change own size depending on the text contents.
  • VideoCamera - A wrapper for AVFoundation camera.

Requirements

  • iOS 10.0+
  • Xcode 9.2+
  • Swift 4.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate Toolbox into your Xcode project, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'Shakuro.iOS_Toolbox', :git => 'https://github.com/shakurocom/iOS_Toolbox', :tag => '0.17.0'
end

Then, run the following command:

$ pod install

You can use/integrate only the necessary components. To do this, you need to specify the subpod:

target '<Your Target Name>' do
    pod 'Shakuro.iOS_Toolbox/<Component Name>', :git => 'https://github.com/shakurocom/iOS_Toolbox', :tag => '0.17.0'
#example:
    pod 'Shakuro.iOS_Toolbox/Keychain', :git => 'https://github.com/shakurocom/iOS_Toolbox', :tag => '0.17.0'
end

Manually

If you prefer not to use CocoaPods, you can integrate any/all components from the Shakuro iOS Toolbox simply by copying them to your project.

License

Shakuro iOS Toolbox is released under the MIT license. See LICENSE for details.