AppCircleSampleProject
Installation
Cocoapods
AppCircleSampleProject is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AppCircleSampleProject'
Swift Package Manager
- File > Swift Packages > Add Package Dependency
- 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)
}
}