Skip to content

Commit

Permalink
Bump version to 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia3546 committed Sep 1, 2022
1 parent 927978f commit 8134d43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Fastis.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = 'Fastis'
s.version = '2.0.1'
s.version = '2.1.0'
s.summary = "Simple date picker created using JTAppleCalendar library"
s.description = <<-DESC
Fastis is a fully customizable UI component for picking dates and ranges created using JTAppleCalendar library.
DESC

s.homepage = 'https://github.com/simla-tech/Fastis'
s.social_media_url = 'https://www.simla.com'
s.screenshot = 'https://user-images.githubusercontent.com/4445510/187741251-d46c8a76-b8a5-428b-9a14-03411e0ba8f2.png'
s.screenshot = 'https://user-images.githubusercontent.com/4445510/187880045-cb66b662-095b-4173-b795-b1e732cc2166.png'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Ilya Kharlamov' => '[email protected]' }
s.source = { :git => 'https://github.com/simla-tech/Fastis.git', :tag => s.version.to_s }
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img alt="Fastis" src="https://user-images.githubusercontent.com/4445510/187741251-d46c8a76-b8a5-428b-9a14-03411e0ba8f2.png" width="100%">
<img alt="Fastis" src="https://user-images.githubusercontent.com/4445510/187880045-cb66b662-095b-4173-b795-b1e732cc2166.png" width="100%">

[![SwiftMP compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg?style=flat)](https://github.com/apple/swift-package-manager)
[![Cocoapods compatible](https://img.shields.io/cocoapods/v/Fastis.svg)](https://cocoapods.org/pods/Fastis)
[![CocoaPods compatible](https://img.shields.io/cocoapods/v/Fastis.svg)](https://cocoapods.org/pods/Fastis)
[![Swift](https://img.shields.io/badge/Swift-5-green.svg?style=flat)](https://swift.org)
[![Xcode](https://img.shields.io/badge/Xcode-11-blue.svg?style=flat)](https://developer.apple.com/xcode)
[![License](https://img.shields.io/badge/license-mit-brightgreen.svg?style=flat)](https://en.wikipedia.org/wiki/MIT_License)
Expand Down Expand Up @@ -78,7 +78,7 @@ Carthage isn't supported.

### Manually

If you prefer not to use either of the dependency mentioned above managers, you can manually integrate Fastis into your project.
If you prefer not to use either of the dependency managers mentioned above, you can manually integrate Fastis into your project.


## Usage
Expand All @@ -90,7 +90,7 @@ import Fastis

class MyViewController: UIViewController {

func chooseDate() {
func chooseDate() {
let fastisController = FastisController(mode: .range)
fastisController.title = "Choose range"
fastisController.maximumDate = Date()
Expand All @@ -113,7 +113,7 @@ If you want to get a single date, you have to use the `Date` type:
let fastisController = FastisController(mode: .single)
fastisController.initialValue = Date()
fastisController.doneHandler = { resultDate in
print(resultDate) // resultDate is Date
print(resultDate) // resultDate is Date
}
```

Expand All @@ -123,7 +123,7 @@ If you want to get a date range, you have to use the `FastisRange` type:
let fastisController = FastisController(mode: .range)
fastisController.initialValue = FastisRange(from: Date(), to: Date()) // or .from(Date(), to: Date())
fastisController.doneHandler = { resultRange in
print(resultRange) // resultDate is FastisRange
print(resultRange) // resultDate is FastisRange
}
```

Expand Down Expand Up @@ -167,8 +167,8 @@ Also, you can create your own shortcut:

```swift
var customShortcut = FastisShortcut(name: "Today") {
let now = Date()
return FastisRange(from: now.startOfDay(), to: now.endOfDay())
let now = Date()
return FastisRange(from: now.startOfDay(), to: now.endOfDay())
}
fastisController.shortcuts = [customShortcut, .lastWeek]
```
Expand Down

0 comments on commit 8134d43

Please sign in to comment.