Custom Time Picker ViewController with Selection of start and end times in Swift 🔶

Overview

LFTimePicker

Custom Time Picker ViewController with Selection of start and end times in Swift 🔶 . Based on Adey Salyard's design @ Dribbble

Swift Version Build Status License Carthage compatible CocoaPods Compatible
Platform

One to two paragraph statement about your product and what it does.

ezgif com-resize

Features

  • 12h and 24h formats

Requirements

  • iOS 8.0+
  • Xcode 7.3

Installation

CocoaPods

You can use CocoaPods to install YourLibrary by adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!
pod 'LFTimePicker'

To get the full benefits import LFTimePicker wherever you import UIKit

import UIKit
import LFTimePicker

Carthage

Create a Cartfile that lists the framework and run carthage bootstrap. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/YourLibrary.framework to an iOS project.

github "awesome-labs/LFTimePicker"

Swift Package Manager

Add this project on your Package.swift

import PackageDescription

let package = Package(
  name: "LFTimePicker"
)

Manually

  1. Download and drop LFTimePickerController.swift in your project.
  2. Congratulations!

Usage example

//1. Create a LFTimePickerController
let timePicker = LFTimePickerController()

//2. Present the timePicker
self.navigationController?.pushViewController(timePicker, animated: true)

//3. Implement the LFTimePickerControllerDelegate
extension ExampleViewController: LFTimePickerControllerDelegate {

	func didPickTime(start: String, end: String) {

		print(start)
		print(end)
	}
}

Contribute

We would love for you to contribute to LFTimePicker, check the LICENSE file for more info.

Meta

Lucas Farah – @7farah7[email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/awesome-labs

You might also like...
SwiftDate 🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
SwiftDate 🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.

Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift. What's This? SwiftDate is the definitive toolchain to ma

SwiftMoment - A time and calendar manipulation library for iOS 9+, macOS 10.11+, tvOS 9+, watchOS 2+ written in Swift 4.

SwiftMoment This framework is inspired by Moment.js. Its objectives are the following: Simplify the manipulation and readability of date and interval

NTP library for Swift and Objective-C. Get the true time impervious to device clock changes.
NTP library for Swift and Objective-C. Get the true time impervious to device clock changes.

TrueTime for Swift Make sure to check out our counterpart too: TrueTime, an NTP library for Android. NTP client for Swift. Calculate the time "now" im

Timekeeper is an easy-to-use time measurement library written in Swift, with support for iOS, tvOS, watchOS and macOS.
Timekeeper is an easy-to-use time measurement library written in Swift, with support for iOS, tvOS, watchOS and macOS.

Timekeeper is an easy-to-use time measurement library written in Swift, with support for iOS, tvOS, watchOS and macOS. Installation Timekee

Date and time manager for iOS/OSX written in Swift
Date and time manager for iOS/OSX written in Swift

Tempo was designed to work both in OSX and in iOS (7.0+). Work with the time or dates can be cumbersome, iOS development. Tempo allows you to deal easly with date and time. Basics manipulations are already implemented in Tempo.

NVDate is an extension of NSDate class (Swift4), created to make date and time manipulation easier.

NVDate is an extension of NSDate class (Swift4), created to make date and time manipulation easier. NVDate is testable and robust, we wrote intensive test to make sure everything is safe.

SwiftUI library to display a clock. You can move the arms to change the time, change the style of the clock and customise some configurations.
SwiftUI library to display a clock. You can move the arms to change the time, change the style of the clock and customise some configurations.

SwiftClockUI Clock UI for SwiftUI This library has been tested ✅ 💻 macOS Catalina 10.15.3 ✅ 💻 macOS Big Sur 11.6 ✅ 📱 iOS 13 ✅ 📱 iOS 14 ✅ 📱 iOS 15

Time Lines - Know when all your friends, colleagues, and family are
Time Lines - Know when all your friends, colleagues, and family are

Time Lines Know when all your friends, colleagues, and family are. Time Lines is a practical app to know when all your friends, colleagues and family

🕰 Type-safe time calculations in Swift

Time This micro-library is made for you if: You have ever written something like this: let interval: TimeInterval = 10 * 60 To represent 10 minutes. U

Comments
  • Swift Package Manager on Readme

    Swift Package Manager on Readme

    What should we put on the majorVersion and MinorVersion?

    Swift Package Manager

    Add this project on your Package.swift

    import PackageDescription
    
    let package = Package(
      name: "LFTimePicker"
    )
    
    opened by lfarah 3
  • Carthage compatibility closes #1

    Carthage compatibility closes #1

    Hi, I've re-organized a bit your repo, and it's now Carthage compatible. Also, it's compatible with Swift Package Manager, you just have to add the Package.swift file.

    I've Tagged with version 0.0.3 which will be the version fetched by cocoapods and Carthage.

    If there is no problem for you with the modifications I made, feel free to merge it :)

    opened by JARMourato 2
  • navigation items not showing

    navigation items not showing

    i just came across this library and when i tried to show the navigation button, the whole navigation bar is nowhere to be seen.

    I am presenting the time picker on the tap of a button using "self.present.viewcontroller" the whole screen is just filled with the time table and hence when this screen is shown the user cannot go back or further.

    Is this a bug or am i doing something wrong?

    opened by vgvishesh23113 0
  • iPad issue

    iPad issue

    Hello, i am actually using this awesome library in my project. I am almost done with it, but on the iPad, i experiencing an issue, which i dont know how to solve... Seems like the scrolling, does not work properly. On the iPhone, it works like i do expect while on iPad, i cannot scroll to the last rows of the picker. Do you have any solution for this? Thanks in advance

    opened by siideffect 2
Owner
Awesome Labs
Awesome Labs
This Control is a beautiful time-of-day picker heavily inspired by the iOS 10 "Bedtime" timer.

#10Clock Dark and Mysterious ?? Light Colors ?? Usage The control itsself is TenClock. Add that to your view hierarchy, and constrain it to be square

Joe 557 Dec 23, 2022
Better time picker for iOS.

TimePicker Better TimePicker for iOS Requirements Swift 5.0 iOS 10.0+ Xcode 10.2+ Installation The easiest way is through CocoaPods. Simply add the de

Oleh 14 Oct 21, 2022
Dates and times made easy in iOS

DateTools DateTools was written to streamline date and time handling in iOS. Classes and concepts from other languages served as an inspiration for Da

Matthew York 7.2k Dec 30, 2022
Typical master detail SAMPLE application written in Swift to test NY Times Most Popular API

NYTimes-Demo: Typical master detail SAMPLE application written in Swift to test NY Times Most Popular API. This SAMPLE application is written in Swift

Atif Naveed 0 Nov 3, 2021
🕐 Format your dates/times as emojis.

EmojiTimeFormatter Format your dates/times as emojis ?? ?? ?? Description You can build easy to understand user interfaces with EmojiTimeFormatter or

Thomas Paul Mann 80 Feb 7, 2022
A "time ago", "time since", "relative date", or "fuzzy date" category for NSDate and iOS, Objective-C, Cocoa Touch, iPhone, iPad

Migration 2014.04.12 NSDate+TimeAgo has merged with DateTools. DateTools is the parent project and Matthew York is the project head. This project is n

Kevin Lawler 1.8k Dec 2, 2022
A customizable date picker for watchOS and SwiftUI.

Watch Date Picker A customizable date picker for watchOS and SwiftUI. Installation .package(url: "https://github.com/freyaariel/watch-date-picker.git"

Freya Ariel 30 Dec 4, 2022
A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.

TimeZonePicker A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your

Gligor Kotushevski 125 Dec 13, 2022
A basic countdown app that allows the user to create, edit, and delete events. Each event contains a live countdown timer to a specified date and time.

Event Countdown App (iOS) Created by Lucas Ausberger About This Project Created: January 4, 2021 Last Updated: January 8, 2021 Current Verison: 1.1.1

Lucas Ausberger 1 Jan 8, 2022
Time is a Swift package that makes dealing with calendar values a natural and straight-forward process.

Time Time is a Swift package that makes dealing with calendar values a natural and straight-forward process. Working with calendars can be extremely c

Dave DeLong 2k Dec 31, 2022