Customizable analog clock framework for iOS written in Swift 4.2
Clocket
is an iOS framework written in Swift 4.2 that makes it easy to create and customize clock views.
Clocket
is available through CocoaPods.
To be able to use the framework in your project:
$ sudo gem install cocoapods
use_frameworks!
platform :ios, '11.0'
target 'MyApp' do
pod 'Clocket'
end
pod install
in the project directory:$ cd <path/to/your/project/directory>
$ pod install
MyApp.xcworkspace
in Xcode and build.import Clocket
Clocket
in the identity inspector.clock
in the ViewController.true
.startClock()
call to start the clock.import Clocket //1
class ViewController: UIViewController {
@IBOutlet weak var clock: Clocket! //3
override func viewDidLoad() {
super.viewDidLoad()
clock.displayRealTime = true //4
clock.startClock() //5
}
}
For more code examples on Clocket
usage see the example project.
Andrey Filonov, [email protected]
Clocket
is available under the MIT license. See the LICENSE file for more info.