1- <img alt =" Fastis " src =" https://user-images.githubusercontent.com/4445510/187741251-d46c8a76-b8a5-428b-9a14-03411e0ba8f2 .png " width =" 100% " >
1+ <img alt =" Fastis " src =" https://user-images.githubusercontent.com/4445510/187880045-cb66b662-095b-4173-b795-b1e732cc2166 .png " width =" 100% " >
22
33[ ![ SwiftMP compatible] ( https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg?style=flat )] ( https://github.com/apple/swift-package-manager )
4- [ ![ Cocoapods compatible] ( https://img.shields.io/cocoapods/v/Fastis.svg )] ( https://cocoapods.org/pods/Fastis )
4+ [ ![ CocoaPods compatible] ( https://img.shields.io/cocoapods/v/Fastis.svg )] ( https://cocoapods.org/pods/Fastis )
55[ ![ Swift] ( https://img.shields.io/badge/Swift-5-green.svg?style=flat )] ( https://swift.org )
66[ ![ Xcode] ( https://img.shields.io/badge/Xcode-11-blue.svg?style=flat )] ( https://developer.apple.com/xcode )
77[ ![ License] ( https://img.shields.io/badge/license-mit-brightgreen.svg?style=flat )] ( https://en.wikipedia.org/wiki/MIT_License )
@@ -78,7 +78,7 @@ Carthage isn't supported.
7878
7979### Manually
8080
81- If you prefer not to use either of the dependency mentioned above managers , you can manually integrate Fastis into your project.
81+ If you prefer not to use either of the dependency managers mentioned above, you can manually integrate Fastis into your project.
8282
8383
8484## Usage
@@ -90,7 +90,7 @@ import Fastis
9090
9191class MyViewController : UIViewController {
9292
93- func chooseDate () {
93+ func chooseDate () {
9494 let fastisController = FastisController (mode : .range )
9595 fastisController.title = " Choose range"
9696 fastisController.maximumDate = Date ()
@@ -113,7 +113,7 @@ If you want to get a single date, you have to use the `Date` type:
113113let fastisController = FastisController (mode : .single )
114114fastisController.initialValue = Date ()
115115fastisController.doneHandler = { resultDate in
116- print (resultDate) // resultDate is Date
116+ print (resultDate) // resultDate is Date
117117}
118118```
119119
@@ -123,7 +123,7 @@ If you want to get a date range, you have to use the `FastisRange` type:
123123let fastisController = FastisController (mode : .range )
124124fastisController.initialValue = FastisRange (from : Date (), to : Date ()) // or .from(Date(), to: Date())
125125fastisController.doneHandler = { resultRange in
126- print (resultRange) // resultDate is FastisRange
126+ print (resultRange) // resultDate is FastisRange
127127}
128128```
129129
@@ -167,8 +167,8 @@ Also, you can create your own shortcut:
167167
168168``` swift
169169var customShortcut = FastisShortcut (name : " Today" ) {
170- let now = Date ()
171- return FastisRange (from : now.startOfDay (), to : now.endOfDay ())
170+ let now = Date ()
171+ return FastisRange (from : now.startOfDay (), to : now.endOfDay ())
172172}
173173fastisController.shortcuts = [customShortcut, .lastWeek ]
174174```
0 commit comments