Latest 0.0.9
License MIT
Platforms ios 9.0

Build Status

Dark and Mysterious🕶 Light Colors🌻


The control itsself is TenClock. Add that to your view hierarchy, and constrain it to be square (thats kindof important).

to set times, do:

self.tenClock.startDate = NSDate()
self.tenClock.endDate = NSDate. //sometime later

make the date today.
then, to get updates for when the date changes, adopt the protocol TenClockDelegate and observe:

import TenClock
class ViewController: UIViewController, TenClockDelegate {
    func timesChanged(clock:TenClock, startDate:NSDate,  endDate:NSDate  ) -> (){
        print("start at: (startDate), end at: (endDate)")
        self.beginTimeLabel.text = dateFormatter.stringFromDate(startDate)
        self.endTimeLabel.text = dateFormatter.stringFromDate(endDate)
    // ...


The goals of the project at this point should be testing for edgecase behavior and expanding customizability.

Please do contribute, open an issue if you have a question. Then Submit a PR! :D

Install via CocoaPods

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

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build 10Clock

To integrate 10Clock into your Xcode project using CocoaPods, specify it in your Podfile:

source ''
platform :ios, '10.0'

target '<Your Target Name>' do
    pod '10Clock'


10Clock is released under the MIT license. See LICENSE for details.

Latest podspec

    "name": "10Clock",
    "version": "0.0.9",
    "summary": "Beautiful iOS Time Picker inspired by the ios 10 "Bedtime" Timer.",
    "description": "This Control is a beautiful time-of-day picker heavily inspired by the iOS 10 "Bedtime" timer.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Joe": "[email protected]"
    "social_media_url": "",
    "platforms": {
        "ios": "9.0"
    "source": {
        "git": "",
        "tag": "v0.0.9"
    "source_files": [
    "exclude_files": "SwiftClock/*"

Pin It on Pinterest

Share This