Code Monkey home page Code Monkey logo

sambag's Introduction

Sambag

Android Time, Month-Year, and Date pickers implemented in Swift for iOS development

Date Picker

Specifying min and max date

let vc = SambagDatePickerViewController()
var limit = SambagSelectionLimit()
limit.selectedDate = Date()
let calendar = Calendar.current
limit.minDate = calendar.date(
    byAdding: .year,
    value: -50,
    to: limit.selectedDate,
    wrappingComponents: false
)
limit.maxDate = calendar.date(
    byAdding: .year,
    value: 50,
    to: limit.selectedDate,
    wrappingComponents: false
)
vc.limit = limit

Showing day of week

let vc = SambagDatePickerViewController()
vc.hasDayOfWeek = true 

Hiding day of week

let vc = SambagDatePickerViewController()
vc.hasDayOfWeek = false 

Screenshots

Time Picker

Theme_Dark Theme_Light

Month Year Picker

Month_Year_Dark Month_Year_Light

Date Picker

Date_Dark Date_Light

sambag's People

Contributors

mownier avatar taier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sambag's Issues

Customization Properties

It would be super convenient to have public properties associated with the controllers that allow you to customize colors and other preferences.

For example, regardless of the theme you use, the color of the underline for the pickers is by default blue and cannot be changed unless the Sambag library itself is modified, which is not ideal for those of us who use dependency managers such as Cocoapods.

If I find some time this weekend, I will try to fork the repo and submit a PR with these changes.

24 hours time

Ability to automatically change 24h/12h time
Ability to override it in theme

Major UI Bug

I downloaded your demo project, built and ran.

When presenting any of the pickers, I get a very distorted UI. I am running on iPhone X, latest iOS 11.X.X and latest Xcode.

img_0456aa70a04a-1

uI issue

hi, Can you update this control to swift 4.2 ?

I'm trying to install through the pod, but in the pod, I'm experiencing the same design issue.

Thanks

Min date and Time still not working in iOS

Hye,
I try with version 1.1.0 and checked the same, In this version min date and time is still not working, Could you please let me know is this issue resolved in 1.1.0 for iOS?
Thanks In advance

Design issue in Cxode 9.2

Hi Sambag,
In my app i am using ur picker viewcontroller , Some design issue is coming. Please fix and commit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.