From 8134d431aa6b6425f6af1ab2e0cb1b2c2c014b76 Mon Sep 17 00:00:00 2001 From: Ilya Kharlamov Date: Thu, 1 Sep 2022 12:31:13 +0300 Subject: [PATCH] Bump version to 2.1.0 --- Fastis.podspec | 4 ++-- README.md | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Fastis.podspec b/Fastis.podspec index fb405e5..82d03c3 100644 --- a/Fastis.podspec +++ b/Fastis.podspec @@ -1,6 +1,6 @@ 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. @@ -8,7 +8,7 @@ Pod::Spec.new do |s| 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' => 'kharlamov@retailcrm.ru' } s.source = { :git => 'https://github.com/simla-tech/Fastis.git', :tag => s.version.to_s } diff --git a/README.md b/README.md index b670f44..0046b97 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -Fastis +Fastis [![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) @@ -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 @@ -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() @@ -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 } ``` @@ -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 } ``` @@ -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] ```