Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- TZDatePicker (1.0.0)
- TZDatePicker (1.0.1)

DEPENDENCIES:
- TZDatePicker (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../

SPEC CHECKSUMS:
TZDatePicker: f52685bd978b8c52f5b61a0b806a97d13fb6050d
TZDatePicker: 9496a92a8e2637ba99b1b4286557d6fa3f67633b

PODFILE CHECKSUM: 6a2f33b86c79e3d3eb5099777e29c70d610daab8

Expand Down
1 change: 1 addition & 0 deletions Example/TZDatePicker/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ViewController: UIViewController {
let datePicker = TZDatePicker(dateComponents: dateComponents)
datePicker.onValueChanged = {
dateComponents in
dateComponents

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, thank you very much for writing the README for me!! Now for the review: why did you add this line? Please remove it.

self.updateLabel(dateComponents)
}
updateLabel(dateComponents)
Expand Down
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
# TZDatePicker

is a simple DatePicker that easy to use

@tomvanzummeren tomvanzummeren Oct 20, 2017

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good sentence and also not the reason I created this pod. I created it because I wanted a date picker with an optional year. Please change this into "This is a replacement for the UIDatePicker, which allows the year to be optional."


## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

### the Example project
![TZDatePicker Example app](https://github.com/heart/TZDatePicker/blob/master/images/screenshot.png?raw=true)


## Requirements
Swift


## Installation

SwiftTween is available through [CocoaPods](http://cocoapods.org). To install

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SwiftTeen?

it, simply add the following line to your Podfile:

```ruby
pod 'TZDatePicker'
```

## Example
```swift
var dateComponents = DateComponents()
dateComponents.month = 7
dateComponents.day = 20

let datePicker = TZDatePicker(dateComponents: dateComponents)
datePicker.onValueChanged = {
dateComponents in

print( dateComponents.description )

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line and change the print() into:
// Handle changed dateComponents


}

view.addSubview(datePicker)
```
Binary file added images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.