harunozdemir / AppCircleSampleProject

Creating an iOS Library the Right Way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AppCircleSampleProject

Installation

Cocoapods

AppCircleSampleProject is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AppCircleSampleProject'

Swift Package Manager

  1. File > Swift Packages > Add Package Dependency
  2. Add https://github.com/ferhanakkan/AppCircleSampleProject.git

OR

Update dependencies in Package.swift

dependencies: [
    .package(url: "https://github.com/ferhanakkan/AppCircleSampleProject.git", .upToNextMajor(from: "1.0.0"))
]

Usage

import AppCircleSampleProject
import UIKit

class ViewController: UIViewController, FlashUsable {


    @IBAction func didTapOnButton(_ sender: Any) {
        setFlashlight(with: .on)
    }

    @IBAction func didTapOffButton(_ sender: Any) {
        setFlashlight(with: .off)
    }
}

About

Creating an iOS Library the Right Way

License:MIT License


Languages

Language:Swift 83.1%Language:Ruby 16.9%