├── .gitignore ├── .travis.yml ├── CalendarPicker.podspec ├── CalendarPicker ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── CalendarPicker+LocalizeType.swift │ ├── CalendarPicker.swift │ ├── Date+dateComponent.swift │ ├── DateComponent+Week.swift │ ├── DateComponent.swift │ ├── DateFormatType.swift │ └── DateType.swift ├── Example ├── CalendarPicker.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── CalendarPicker-Example.xcscheme ├── CalendarPicker.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── CalendarPicker │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── CalendarPicker.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── CalendarPicker │ │ ├── CalendarPicker-Info.plist │ │ ├── CalendarPicker-dummy.m │ │ ├── CalendarPicker-prefix.pch │ │ ├── CalendarPicker-umbrella.h │ │ ├── CalendarPicker.modulemap │ │ └── CalendarPicker.xcconfig │ │ ├── Pods-CalendarPicker_Example │ │ ├── Pods-CalendarPicker_Example-Info.plist │ │ ├── Pods-CalendarPicker_Example-acknowledgements.markdown │ │ ├── Pods-CalendarPicker_Example-acknowledgements.plist │ │ ├── Pods-CalendarPicker_Example-dummy.m │ │ ├── Pods-CalendarPicker_Example-frameworks.sh │ │ ├── Pods-CalendarPicker_Example-umbrella.h │ │ ├── Pods-CalendarPicker_Example.debug.xcconfig │ │ ├── Pods-CalendarPicker_Example.modulemap │ │ └── Pods-CalendarPicker_Example.release.xcconfig │ │ └── Pods-CalendarPicker_Tests │ │ ├── Pods-CalendarPicker_Tests-Info.plist │ │ ├── Pods-CalendarPicker_Tests-acknowledgements.markdown │ │ ├── Pods-CalendarPicker_Tests-acknowledgements.plist │ │ ├── Pods-CalendarPicker_Tests-dummy.m │ │ ├── Pods-CalendarPicker_Tests-umbrella.h │ │ ├── Pods-CalendarPicker_Tests.debug.xcconfig │ │ ├── Pods-CalendarPicker_Tests.modulemap │ │ └── Pods-CalendarPicker_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── _Pods.xcodeproj └── img └── preview.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | # Package.resolved 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | 51 | # Carthage 52 | # 53 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 54 | # Carthage/Checkouts 55 | 56 | Carthage/Build 57 | 58 | # fastlane 59 | # 60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 61 | # screenshots whenever they are needed. 62 | # For more information about the recommended setup visit: 63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 64 | 65 | fastlane/report.xml 66 | fastlane/Preview.html 67 | fastlane/screenshots/**/*.png 68 | fastlane/test_output 69 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode12.2 6 | language: swift 7 | # cache: cocoapods 8 | podfile: Example/Podfile 9 | before_install: 10 | - gem install cocoapods # Since Travis is not always on latest version 11 | - pod install --project-directory=Example 12 | script: 13 | - xcodebuild -version 14 | - xcodebuild -showsdks 15 | - xcodebuild -list 16 | - set -o pipefail && xcodebuild test -workspace Example/CalendarPicker.xcworkspace -scheme CalendarPicker-Example -destination 'platform=iOS Simulator,name=iPhone 12,OS=14.2' | xcpretty 17 | - pod lib lint -------------------------------------------------------------------------------- /CalendarPicker.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint CalendarPicker.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'CalendarPicker' 11 | s.version = '0.1.3' 12 | s.summary = 'I have added some features in the iOS default DatePicker.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | If you set minumDate and maximumDate in the iOS default DatePicker, the date will disappear 22 | You can set the day of the week to appear. 23 | DESC 24 | 25 | s.homepage = 'https://github.com/pikachu987/CalendarPicker' 26 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 27 | s.license = { :type => 'MIT', :file => 'LICENSE' } 28 | s.author = { 'pikachu987' => 'pikachu77769@gmail.com' } 29 | s.source = { :git => 'https://github.com/pikachu987/CalendarPicker.git', :tag => s.version.to_s } 30 | # s.social_media_url = 'https://twitter.com/' 31 | 32 | s.ios.deployment_target = '9.0' 33 | 34 | s.swift_version = '5.0' 35 | 36 | s.source_files = 'CalendarPicker/Classes/**/*' 37 | 38 | # s.resource_bundles = { 39 | # 'CalendarPicker' => ['CalendarPicker/Assets/*.png'] 40 | # } 41 | 42 | # s.public_header_files = 'Pod/Classes/**/*.h' 43 | # s.frameworks = 'UIKit', 'MapKit' 44 | # s.dependency 'AFNetworking', '~> 2.3' 45 | end 46 | -------------------------------------------------------------------------------- /CalendarPicker/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pikachu987/CalendarPicker/4398b52c5ef2f60bc831f2b6cc94b90572d753b1/CalendarPicker/Assets/.gitkeep -------------------------------------------------------------------------------- /CalendarPicker/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pikachu987/CalendarPicker/4398b52c5ef2f60bc831f2b6cc94b90572d753b1/CalendarPicker/Classes/.gitkeep -------------------------------------------------------------------------------- /CalendarPicker/Classes/CalendarPicker+LocalizeType.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2019 pikachu987 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import UIKit 22 | 23 | public extension CalendarPicker { 24 | enum LocalizeType { 25 | case ko 26 | case jp 27 | case zh 28 | case en 29 | case `default` 30 | 31 | static func localize(locale: Locale?) -> LocalizeType { 32 | guard let locale = locale else { return .default } 33 | if locale.identifier.hasPrefix("ko") || locale.identifier.hasPrefix("kr") { return .ko } 34 | else if locale.identifier.hasPrefix("jp") || locale.identifier.hasPrefix("ja") { return .jp } 35 | else if locale.identifier.hasPrefix("zh") { return .zh } 36 | else if locale.identifier.hasPrefix("en") { return .en } 37 | else { return .default } 38 | } 39 | 40 | func dateArray(_ dateFormatType: DateFormatType) -> [DateType] { 41 | if dateFormatType == .default { 42 | switch self { 43 | case .ko, .jp, .zh: return [.year, .month, .day] 44 | case .en, .default: return [.month, .day, .year] 45 | } 46 | } else { 47 | switch self { 48 | case .ko, .jp, .zh: return [.year, .month] 49 | case .en, .default: return [.month, .year] 50 | } 51 | } 52 | } 53 | 54 | func width(dateType: DateType, isShowWeek: Bool) -> CGFloat { 55 | switch self { 56 | case .ko, .jp, .zh: 57 | if dateType == .year { 58 | return 96 59 | } else if dateType == .month { 60 | return 66 61 | } else { 62 | if isShowWeek { 63 | return 95 64 | } else { 65 | return 70 66 | } 67 | } 68 | default: 69 | if dateType == .month { 70 | return 132 71 | } else if dateType == .year { 72 | return 76 73 | } else { 74 | if isShowWeek { 75 | return 75 76 | } else { 77 | return 49 78 | } 79 | } 80 | } 81 | } 82 | 83 | func alignment(dateType: DateType) -> NSTextAlignment { 84 | switch self { 85 | case .ko, .jp, .zh: 86 | if dateType == .year { 87 | return .center 88 | } else if dateType == .month { 89 | return .left 90 | } else { 91 | return .left 92 | } 93 | default: 94 | if dateType == .year { 95 | return .center 96 | } else if dateType == .month { 97 | return .left 98 | } else { 99 | return .center 100 | } 101 | } 102 | } 103 | 104 | func dateIndex(_ dateType: DateType, dateFormatType: DateFormatType) -> Int { 105 | return self.dateArray(dateFormatType).firstIndex(where: { $0 == dateType }) ?? 0 106 | } 107 | 108 | func year(_ value: Int) -> String { 109 | switch self { 110 | case .ko: return "\(value + 1)년" 111 | case .jp, .zh: return "\(value + 1)年" 112 | case .en, .default: return "\(value + 1)" 113 | } 114 | } 115 | 116 | func month(_ value: Int) -> String { 117 | switch self { 118 | case .ko: return "\(value + 1)월" 119 | case .jp, .zh: return "\(value + 1)月" 120 | case .en, .default: 121 | let months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] 122 | return "\(months[value])" 123 | } 124 | } 125 | 126 | func day(_ value: Int) -> String { 127 | switch self { 128 | case .ko: return "\(value + 1)일" 129 | case .jp, .zh: return "\(value + 1)日" 130 | case .en, .default: return "\(value + 1)" 131 | } 132 | } 133 | } 134 | 135 | } 136 | -------------------------------------------------------------------------------- /CalendarPicker/Classes/CalendarPicker.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2019 pikachu987 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import UIKit 22 | 23 | public protocol CalendarPickerDelegate: class { 24 | func calendarPickerSelectDate(_ dateCompontnt: DateComponent) 25 | } 26 | 27 | open class CalendarPicker: UIView { 28 | public weak var delegate: CalendarPickerDelegate? 29 | 30 | private let pickerView: UIPickerView = { 31 | let pickerView = UIPickerView() 32 | pickerView.translatesAutoresizingMaskIntoConstraints = false 33 | return pickerView 34 | }() 35 | 36 | public var minimumDate: Date? { 37 | didSet { 38 | self.updateDate(animated: false) 39 | } 40 | } 41 | 42 | public var maximumDate: Date? { 43 | didSet { 44 | self.updateDate(animated: false) 45 | } 46 | } 47 | 48 | public var date: Date { 49 | set { 50 | self.setDate(newValue, animated: false) 51 | } 52 | get { 53 | return self._date 54 | } 55 | } 56 | 57 | public var textColor: UIColor? = .black { 58 | didSet { 59 | self.updateDate(animated: false) 60 | } 61 | } 62 | 63 | public var font: UIFont? = UIFont.systemFont(ofSize: 23) { 64 | didSet { 65 | self.updateDate(animated: false) 66 | } 67 | } 68 | 69 | public var saturdayColor: UIColor? = UIColor(red: 31/255, green: 119/255, blue: 219/255, alpha: 1) { 70 | didSet { 71 | self.updateDate(animated: false) 72 | } 73 | } 74 | 75 | public var sundayColor: UIColor? = UIColor(red: 198/255, green: 51/255, blue: 42/255, alpha: 1) { 76 | didSet { 77 | self.updateDate(animated: false) 78 | } 79 | } 80 | 81 | public var locale: Locale? = Locale.current { 82 | didSet { 83 | self.localeType = LocalizeType.localize(locale: self.locale) 84 | } 85 | } 86 | 87 | public var isShowWeek = false { 88 | didSet { 89 | self.pickerView.delegate = nil 90 | self.pickerView.reloadAllComponents() 91 | self.pickerView.delegate = self 92 | self.updateDate(animated: false) 93 | } 94 | } 95 | 96 | public var dateFormatType: DateFormatType = .default { 97 | didSet { 98 | self.pickerView.delegate = nil 99 | self.pickerView.reloadAllComponents() 100 | self.pickerView.delegate = self 101 | self.updateDate(animated: false) 102 | } 103 | } 104 | 105 | public var localeType: LocalizeType = .default { 106 | didSet { 107 | self.pickerView.delegate = nil 108 | self.pickerView.reloadAllComponents() 109 | self.pickerView.delegate = self 110 | self.updateDate(animated: false) 111 | } 112 | } 113 | 114 | public var selectedDateComponent: DateComponent { 115 | let year = self.pickerView.selectedRow(inComponent: self.localeType.dateIndex(.year, dateFormatType: self.dateFormatType)) 116 | let month = self.pickerView.selectedRow(inComponent: self.localeType.dateIndex(.month, dateFormatType: self.dateFormatType)) 117 | let day = self.pickerView.selectedRow(inComponent: self.localeType.dateIndex(.day, dateFormatType: self.dateFormatType)) 118 | var component = DateComponent() 119 | component.year = year + self.minimumDateComponent.year + 1 120 | component.month = month + self.minimumDateComponent.month + 1 121 | component.day = day + self.minimumDateComponent.day + 1 122 | return component 123 | } 124 | 125 | private let years: Int = 9999 126 | private let months: Int = 12 127 | private var days: Int = 31 128 | 129 | private var isShow = true 130 | 131 | private var _date = Date() 132 | private var dateComponent: DateComponent { 133 | return self.date.dateComponent 134 | } 135 | 136 | private var minimumDateComponent = DateComponent() 137 | 138 | private var maximumDateComponent = DateComponent() 139 | 140 | public override init(frame: CGRect) { 141 | super.init(frame: frame) 142 | 143 | self.initVars() 144 | } 145 | 146 | public required init?(coder aDecoder: NSCoder) { 147 | super.init(coder: aDecoder) 148 | } 149 | 150 | open override func awakeFromNib() { 151 | super.awakeFromNib() 152 | 153 | self.initVars() 154 | } 155 | 156 | private func initVars() { 157 | self.addSubview(self.pickerView) 158 | self.addConstraints([ 159 | NSLayoutConstraint(item: self, attribute: .leading, relatedBy: .equal, toItem: self.pickerView, attribute: .leading, multiplier: 1, constant: 0), 160 | NSLayoutConstraint(item: self, attribute: .trailing, relatedBy: .equal, toItem: self.pickerView, attribute: .trailing, multiplier: 1, constant: 0), 161 | NSLayoutConstraint(item: self, attribute: .top, relatedBy: .equal, toItem: self.pickerView, attribute: .top, multiplier: 1, constant: 0), 162 | NSLayoutConstraint(item: self, attribute: .bottom, relatedBy: .equal, toItem: self.pickerView, attribute: .bottom, multiplier: 1, constant: 0), 163 | ]) 164 | 165 | self.pickerView.delegate = self 166 | self.pickerView.dataSource = self 167 | self.updateDate(animated: false) 168 | } 169 | 170 | open func update(animated: Bool) { 171 | self.updateDate(animated: animated) 172 | } 173 | 174 | open func setDate(_ date: Date, animated: Bool) { 175 | self._date = date 176 | self.updateDate(animated: animated) 177 | } 178 | 179 | private func updateDate(animated: Bool) { 180 | self.isShow = true 181 | if let minimumDate = self.minimumDate, let maximumDate = self.maximumDate { 182 | if (minimumDate.dateComponent.year > maximumDate.dateComponent.year) || 183 | (minimumDate.dateComponent.year == maximumDate.dateComponent.year && minimumDate.dateComponent.month > maximumDate.dateComponent.month) || 184 | (minimumDate.dateComponent.year == maximumDate.dateComponent.year && minimumDate.dateComponent.month == maximumDate.dateComponent.month && minimumDate.dateComponent.day > maximumDate.dateComponent.day) { 185 | self.isShow = false 186 | } 187 | } 188 | self.pickerView.reloadAllComponents() 189 | 190 | if self.isShow { 191 | self.availableYearDate() 192 | self.availableMonthDate() 193 | self.availableDayDate() 194 | 195 | if self.updateYearDate(animated: animated) { 196 | if self.updateMonthDate(animated: animated) { 197 | self.updateDayhDate(animated: animated) 198 | } 199 | } 200 | } 201 | } 202 | 203 | private func availableYearDate() { 204 | if let minimumDate = self.minimumDate { 205 | self.minimumDateComponent.year = minimumDate.dateComponent.year - 1 206 | } else { 207 | self.minimumDateComponent.reset() 208 | } 209 | 210 | if let maximumDate = self.maximumDate { 211 | self.maximumDateComponent.year = self.years - maximumDate.dateComponent.year 212 | } else { 213 | self.maximumDateComponent.reset() 214 | } 215 | 216 | self.pickerView.reloadComponent(self.localeType.dateIndex(.year, dateFormatType: self.dateFormatType)) 217 | } 218 | 219 | private func availableMonthDate() { 220 | if self.selectedDateComponent.equalYear(self.minimumDate?.dateComponent) { 221 | self.minimumDateComponent.month = (self.minimumDate?.dateComponent.month ?? 0) - 1 222 | } else { 223 | self.minimumDateComponent.month = 0 224 | } 225 | 226 | if self.selectedDateComponent.equalYear(self.maximumDate?.dateComponent) { 227 | self.maximumDateComponent.month = self.months - (self.maximumDate?.dateComponent.month ?? 0) 228 | } else { 229 | self.maximumDateComponent.month = 0 230 | } 231 | 232 | self.pickerView.reloadComponent(self.localeType.dateIndex(.month, dateFormatType: self.dateFormatType)) 233 | } 234 | 235 | private func availableDayDate() { 236 | let dateFormatter = DateFormatter() 237 | dateFormatter.dateFormat = "yyyy-MM-dd" 238 | let monthValue = self.selectedDateComponent.month + 1 < 10 ? "0\(self.selectedDateComponent.month + 1)" : "\(self.selectedDateComponent.month + 1)" 239 | if let date = dateFormatter.date(from: "\(self.selectedDateComponent.yearString)-\(monthValue)-01")?.addingTimeInterval(-24*60*60) { 240 | self.days = date.dateComponent.day 241 | } else { 242 | self.days = 31 243 | } 244 | 245 | if self.selectedDateComponent.equalYearMonth(self.minimumDate?.dateComponent) { 246 | self.minimumDateComponent.day = (self.minimumDate?.dateComponent.day ?? 0) - 1 247 | } else { 248 | self.minimumDateComponent.day = 0 249 | } 250 | 251 | if self.selectedDateComponent.equalYearMonth(self.maximumDate?.dateComponent) { 252 | self.maximumDateComponent.day = self.days - (self.maximumDate?.dateComponent.day ?? 0) 253 | } else { 254 | self.maximumDateComponent.day = 0 255 | } 256 | 257 | self.pickerView.reloadComponent(self.localeType.dateIndex(.day, dateFormatType: self.dateFormatType)) 258 | } 259 | 260 | @discardableResult 261 | private func updateYearDate(animated: Bool) -> Bool { 262 | if !self.isShow { return false } 263 | if self.dateComponent.year - self.minimumDateComponent.year - 1 < 0 { return false } 264 | if (self.years - self.minimumDateComponent.year - self.maximumDateComponent.year) < (self.dateComponent.year - self.minimumDateComponent.year - 1) { return false } 265 | self.pickerView.selectRow(self.dateComponent.year - self.minimumDateComponent.year - 1, inComponent: self.localeType.dateIndex(.year, dateFormatType: self.dateFormatType), animated: animated) 266 | return true 267 | } 268 | 269 | @discardableResult 270 | private func updateMonthDate(animated: Bool) -> Bool { 271 | if !self.isShow { return false } 272 | if self.dateComponent.month - self.minimumDateComponent.month - 1 < 0 { return false } 273 | if (self.months - self.minimumDateComponent.month - self.maximumDateComponent.month) < (self.dateComponent.month - self.minimumDateComponent.month - 1) { return false } 274 | self.pickerView.selectRow(self.dateComponent.month - self.minimumDateComponent.month - 1, inComponent: self.localeType.dateIndex(.month, dateFormatType: self.dateFormatType), animated: animated) 275 | return true 276 | } 277 | 278 | @discardableResult 279 | private func updateDayhDate(animated: Bool) -> Bool { 280 | if !self.isShow { return false } 281 | if self.dateComponent.day - self.minimumDateComponent.day - 1 < 0 { return false } 282 | if (self.days - self.minimumDateComponent.day - self.maximumDateComponent.day) < (self.dateComponent.day - self.minimumDateComponent.day - 1) { return false } 283 | self.pickerView.selectRow(self.dateComponent.day - self.minimumDateComponent.day - 1, inComponent: self.localeType.dateIndex(.day, dateFormatType: self.dateFormatType), animated: animated) 284 | return true 285 | } 286 | 287 | private func checkWeek(_ value: Int) -> (week: DateComponent.Weekday, weekValue: String) { 288 | let value = value + 1 < 10 ? "0\(value + 1)" : "\(value + 1)" 289 | let dateFormatter = DateFormatter() 290 | dateFormatter.dateFormat = "yyyy-MM-dd" 291 | if let date = dateFormatter.date(from: "\(self.selectedDateComponent.yearString)-\(self.selectedDateComponent.monthString)-\(value)"), 292 | let week = date.dateComponent.week { 293 | return (week, "(\(week.valueShort(self.localeType)))") 294 | } 295 | return (.sunday, "") 296 | } 297 | } 298 | 299 | // MARK: UIPickerViewDelegate 300 | extension CalendarPicker: UIPickerViewDelegate { 301 | public func pickerView(_ pickerView: UIPickerView, rowHeightForComponent component: Int) -> CGFloat { 302 | return 31.0 303 | } 304 | 305 | public func pickerView(_ pickerView: UIPickerView, widthForComponent component: Int) -> CGFloat { 306 | return self.localeType.width(dateType: self.localeType.dateArray(self.dateFormatType)[component], isShowWeek: self.isShowWeek) 307 | } 308 | 309 | public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) { 310 | self.availableYearDate() 311 | self.availableMonthDate() 312 | self.availableDayDate() 313 | self.delegate?.calendarPickerSelectDate(self.selectedDateComponent) 314 | } 315 | } 316 | 317 | // MARK: UIPickerViewDataSource 318 | extension CalendarPicker: UIPickerViewDataSource { 319 | public func numberOfComponents(in pickerView: UIPickerView) -> Int { 320 | if !self.isShow { return 0 } 321 | return self.localeType.dateArray(self.dateFormatType).count 322 | } 323 | 324 | public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { 325 | switch self.localeType.dateArray(self.dateFormatType)[component] { 326 | case .year: 327 | return self.years - self.minimumDateComponent.year - self.maximumDateComponent.year 328 | case .month: 329 | return self.months - self.minimumDateComponent.month - self.maximumDateComponent.month 330 | case .day: 331 | return self.days - self.minimumDateComponent.day - self.maximumDateComponent.day 332 | } 333 | } 334 | 335 | public func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView { 336 | let dateType = self.localeType.dateArray(self.dateFormatType)[component] 337 | let label = UILabel() 338 | label.textAlignment = self.localeType.alignment(dateType: dateType) 339 | let attributedString = NSMutableAttributedString() 340 | switch dateType { 341 | case .year: 342 | attributedString.append(NSAttributedString(string: self.localeType.year(row + self.minimumDateComponent.year), attributes: [ 343 | NSAttributedString.Key.font : self.font ?? UIFont.systemFont(ofSize: 23), 344 | NSAttributedString.Key.foregroundColor : self.textColor ?? .black, 345 | ])) 346 | case .month: 347 | attributedString.append(NSAttributedString(string: self.localeType.month(row + self.minimumDateComponent.month), attributes: [ 348 | NSAttributedString.Key.font : self.font ?? UIFont.systemFont(ofSize: 23), 349 | NSAttributedString.Key.foregroundColor : self.textColor ?? .black, 350 | ])) 351 | case .day: 352 | let rowValue = row + self.minimumDateComponent.day 353 | if self.isShowWeek { 354 | let week = self.checkWeek(rowValue) 355 | var color: UIColor = self.textColor ?? .black 356 | if week.week == .saturday { 357 | color = self.saturdayColor ?? UIColor(red: 31/255, green: 119/255, blue: 219/255, alpha: 1) 358 | } else if week.week == .sunday { 359 | color = self.sundayColor ?? UIColor(red: 198/255, green: 51/255, blue: 42/255, alpha: 1) 360 | } 361 | attributedString.append(NSAttributedString(string: "\(self.localeType.day(rowValue)) \(week.weekValue)", attributes: [ 362 | NSAttributedString.Key.font : self.font ?? UIFont.systemFont(ofSize: 23), 363 | NSAttributedString.Key.foregroundColor : color, 364 | ])) 365 | } else { 366 | attributedString.append(NSAttributedString(string: self.localeType.day(rowValue), attributes: [ 367 | NSAttributedString.Key.font : self.font ?? UIFont.systemFont(ofSize: 23), 368 | NSAttributedString.Key.foregroundColor : self.textColor ?? .black, 369 | ])) 370 | } 371 | } 372 | label.attributedText = attributedString 373 | return label 374 | } 375 | } 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | -------------------------------------------------------------------------------- /CalendarPicker/Classes/Date+dateComponent.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2019 pikachu987 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import Foundation 22 | 23 | extension Date { 24 | var dateComponent: DateComponent { 25 | var component = DateComponent() 26 | let calendar = Calendar.current 27 | component.year = (calendar as NSCalendar).components(.year, from: self).year ?? 0 28 | component.month = (calendar as NSCalendar).components(.month, from: self).month ?? 0 29 | component.day = (calendar as NSCalendar).components(.day, from: self).day ?? 0 30 | component.hour = (calendar as NSCalendar).components(.hour, from: self).hour ?? 0 31 | component.minute = (calendar as NSCalendar).components(.minute, from: self).minute ?? 0 32 | component.second = (calendar as NSCalendar).components(.second, from: self).second ?? 0 33 | return component 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /CalendarPicker/Classes/DateComponent+Week.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2019 pikachu987 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import Foundation 22 | 23 | public extension DateComponent { 24 | enum Weekday { 25 | case monday, tuesday, wednesday, thursday, friday, saturday, sunday 26 | 27 | static var array: [Weekday] { 28 | return [.sunday, .monday, .tuesday, .wednesday, .thursday, .friday, .saturday] 29 | } 30 | 31 | public func valueShort(_ value: CalendarPicker.LocalizeType) -> String { 32 | switch value { 33 | case .ko: 34 | switch self { 35 | case .monday: return "월" 36 | case .tuesday: return "화" 37 | case .wednesday: return "수" 38 | case .thursday: return "목" 39 | case .friday: return "금" 40 | case .saturday: return "토" 41 | case .sunday: return "일" 42 | } 43 | case .jp: 44 | switch self { 45 | case .monday: return "月" 46 | case .tuesday: return "火" 47 | case .wednesday: return "水" 48 | case .thursday: return "木" 49 | case .friday: return "金" 50 | case .saturday: return "土" 51 | case .sunday: return "日" 52 | } 53 | case .zh: 54 | switch self { 55 | case .monday: return "一" 56 | case .tuesday: return "二" 57 | case .wednesday: return "三" 58 | case .thursday: return "四" 59 | case .friday: return "五" 60 | case .saturday: return "六" 61 | case .sunday: return "天" 62 | } 63 | case .en, .default: 64 | switch self { 65 | case .monday: return "M" 66 | case .tuesday: return "T" 67 | case .wednesday: return "W" 68 | case .thursday: return "T" 69 | case .friday: return "F" 70 | case .saturday: return "S" 71 | case .sunday: return "S" 72 | } 73 | } 74 | } 75 | 76 | public func value(_ value: CalendarPicker.LocalizeType) -> String { 77 | switch value { 78 | case .ko: 79 | switch self { 80 | case .monday: return "월요일" 81 | case .tuesday: return "화요일" 82 | case .wednesday: return "수요일" 83 | case .thursday: return "목요일" 84 | case .friday: return "금요일" 85 | case .saturday: return "토요일" 86 | case .sunday: return "일요일" 87 | } 88 | case .jp: 89 | switch self { 90 | case .monday: return "月" 91 | case .tuesday: return "火" 92 | case .wednesday: return "水" 93 | case .thursday: return "木" 94 | case .friday: return "金" 95 | case .saturday: return "土" 96 | case .sunday: return "日" 97 | } 98 | case .zh: 99 | switch self { 100 | case .monday: return "星期一" 101 | case .tuesday: return "星期二" 102 | case .wednesday: return "星期三" 103 | case .thursday: return "星期四" 104 | case .friday: return "星期五" 105 | case .saturday: return "星期六" 106 | case .sunday: return "星期天" 107 | } 108 | case .en, .default: 109 | switch self { 110 | case .monday: return "Monday" 111 | case .tuesday: return "Tuesday" 112 | case .wednesday: return "Wenday" 113 | case .thursday: return "Thursday" 114 | case .friday: return "Friday" 115 | case .saturday: return "Saturday" 116 | case .sunday: return "Sunday" 117 | } 118 | } 119 | } 120 | 121 | public static func ==(lhs: Weekday, rhs: Weekday) -> Bool { 122 | switch (lhs, rhs) { 123 | case (.monday, .monday): return true 124 | case (.tuesday, .tuesday): return true 125 | case (.wednesday, .wednesday): return true 126 | case (.thursday, .thursday): return true 127 | case (.friday, .friday): return true 128 | case (.saturday, .saturday): return true 129 | case (.sunday, .sunday): return true 130 | default: return false 131 | } 132 | } 133 | } 134 | 135 | } 136 | -------------------------------------------------------------------------------- /CalendarPicker/Classes/DateComponent.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2019 pikachu987 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import UIKit 22 | 23 | public struct DateComponent { 24 | public var year: Int = 0 25 | public var month: Int = 0 26 | public var day: Int = 0 27 | public var hour: Int = 0 28 | public var minute: Int = 0 29 | public var second: Int = 0 30 | 31 | public var date: Date? { 32 | let dateFormatter = DateFormatter() 33 | dateFormatter.dateFormat = "yyyy-MM-dd hh:mm:ss" 34 | return dateFormatter.date(from: "\(self.yearString)-\(self.monthString)-\(self.dayString) \(self.hourString):\(self.minuteString):\(self.secondString)") 35 | } 36 | 37 | public var week: Weekday? { 38 | guard let date = self.date else { return nil } 39 | let calendar = Calendar.current 40 | let week = (calendar as NSCalendar).components(.weekday, from: date).weekday ?? 0 41 | return Weekday.array[week - 1] 42 | } 43 | 44 | public var yearString: String { 45 | return "\(self.year)" 46 | } 47 | 48 | public var monthString: String { 49 | return self.month < 10 ? "0\(self.month)" : "\(self.month)" 50 | } 51 | 52 | public var dayString: String { 53 | return self.day < 10 ? "0\(self.day)" : "\(self.day)" 54 | } 55 | 56 | public var hourString: String { 57 | return self.hour < 10 ? "0\(self.hour)" : "\(self.hour)" 58 | } 59 | 60 | public var minuteString: String { 61 | return self.minute < 10 ? "0\(self.minute)" : "\(self.minute)" 62 | } 63 | 64 | public var secondString: String { 65 | return self.second < 10 ? "0\(self.second)" : "\(self.second)" 66 | } 67 | 68 | public init() { } 69 | 70 | mutating func reset() { 71 | self.year = 0 72 | self.month = 0 73 | self.day = 0 74 | self.hour = 0 75 | self.minute = 0 76 | self.second = 0 77 | } 78 | 79 | func equalYear(_ value: DateComponent?) -> Bool { 80 | guard let value = value else { return false } 81 | return self.year == value.year 82 | } 83 | 84 | func equalYearMonth(_ value: DateComponent?) -> Bool { 85 | guard let value = value else { return false } 86 | return self.year == value.year && self.month == value.month 87 | } 88 | 89 | func equalDate(_ value: DateComponent?) -> Bool { 90 | guard let value = value else { return false } 91 | return self.year == value.year && self.month == value.month && self.day == value.day 92 | } 93 | 94 | static func dateEqual(lhs: DateComponent, rhs: DateComponent) -> Bool { 95 | if lhs.year == rhs.year && 96 | lhs.month == rhs.month && 97 | lhs.day == rhs.day && 98 | lhs.week == rhs.week && 99 | lhs.yearString == rhs.yearString && 100 | lhs.monthString == rhs.monthString && 101 | lhs.dayString == rhs.dayString { 102 | return true 103 | } else { 104 | return false 105 | } 106 | } 107 | 108 | public static func ==(lhs: DateComponent, rhs: DateComponent) -> Bool { 109 | if lhs.year == rhs.year && 110 | lhs.month == rhs.month && 111 | lhs.day == rhs.day && 112 | lhs.hour == rhs.hour && 113 | lhs.minute == rhs.minute && 114 | lhs.second == rhs.second { 115 | return true 116 | } else { 117 | return false 118 | } 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /CalendarPicker/Classes/DateFormatType.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2019 pikachu987 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import Foundation 22 | 23 | public enum DateFormatType { 24 | case `default` 25 | case yearMonth 26 | } 27 | -------------------------------------------------------------------------------- /CalendarPicker/Classes/DateType.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2019 pikachu987 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import Foundation 22 | 23 | enum DateType { 24 | case year 25 | case month 26 | case day 27 | static var array: [DateType] { 28 | return [.year, .month, .day] 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Example/CalendarPicker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1F3B2794DCAE913F947CB0C9 /* Pods_CalendarPicker_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 283479369C00917825157CF0 /* Pods_CalendarPicker_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | 7A25198DA43E211C6D8DCD5A /* Pods_CalendarPicker_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 765BD5ED260128872AE89976 /* Pods_CalendarPicker_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = CalendarPicker; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 133EFA445A1A5DA195102ABB /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 32 | 283479369C00917825157CF0 /* Pods_CalendarPicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CalendarPicker_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 3B2EE710789D8C24E0A4F067 /* Pods-CalendarPicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CalendarPicker_Example.debug.xcconfig"; path = "Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example.debug.xcconfig"; sourceTree = ""; }; 34 | 43B6F4C76B232424A1A5DBCE /* CalendarPicker.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CalendarPicker.podspec; path = ../CalendarPicker.podspec; sourceTree = ""; }; 35 | 607FACD01AFB9204008FA782 /* CalendarPicker_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CalendarPicker_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* CalendarPicker_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CalendarPicker_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 67E15F65387B111676D1BF6C /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 46 | 765BD5ED260128872AE89976 /* Pods_CalendarPicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CalendarPicker_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | D8D808BA6C5DC6E20F1FC006 /* Pods-CalendarPicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CalendarPicker_Example.release.xcconfig"; path = "Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example.release.xcconfig"; sourceTree = ""; }; 48 | E400FC608A34CE12DA2CBD5B /* Pods-CalendarPicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CalendarPicker_Tests.release.xcconfig"; path = "Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests.release.xcconfig"; sourceTree = ""; }; 49 | FF0742AAEA42F0BCDDE8CBE3 /* Pods-CalendarPicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CalendarPicker_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests.debug.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 1F3B2794DCAE913F947CB0C9 /* Pods_CalendarPicker_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 7A25198DA43E211C6D8DCD5A /* Pods_CalendarPicker_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 607FACC71AFB9204008FA782 = { 73 | isa = PBXGroup; 74 | children = ( 75 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 76 | 607FACD21AFB9204008FA782 /* Example for CalendarPicker */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | E24EA0285BE23BCD14991AAD /* Pods */, 80 | F98034C4F6C9C50D3E282EEE /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* CalendarPicker_Example.app */, 88 | 607FACE51AFB9204008FA782 /* CalendarPicker_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for CalendarPicker */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 97 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 98 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 99 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 100 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for CalendarPicker"; 104 | path = CalendarPicker; 105 | sourceTree = ""; 106 | }; 107 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD41AFB9204008FA782 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 607FACE81AFB9204008FA782 /* Tests */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 119 | 607FACE91AFB9204008FA782 /* Supporting Files */, 120 | ); 121 | path = Tests; 122 | sourceTree = ""; 123 | }; 124 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEA1AFB9204008FA782 /* Info.plist */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 43B6F4C76B232424A1A5DBCE /* CalendarPicker.podspec */, 136 | 133EFA445A1A5DA195102ABB /* README.md */, 137 | 67E15F65387B111676D1BF6C /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | E24EA0285BE23BCD14991AAD /* Pods */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 3B2EE710789D8C24E0A4F067 /* Pods-CalendarPicker_Example.debug.xcconfig */, 146 | D8D808BA6C5DC6E20F1FC006 /* Pods-CalendarPicker_Example.release.xcconfig */, 147 | FF0742AAEA42F0BCDDE8CBE3 /* Pods-CalendarPicker_Tests.debug.xcconfig */, 148 | E400FC608A34CE12DA2CBD5B /* Pods-CalendarPicker_Tests.release.xcconfig */, 149 | ); 150 | path = Pods; 151 | sourceTree = ""; 152 | }; 153 | F98034C4F6C9C50D3E282EEE /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 283479369C00917825157CF0 /* Pods_CalendarPicker_Example.framework */, 157 | 765BD5ED260128872AE89976 /* Pods_CalendarPicker_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* CalendarPicker_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CalendarPicker_Example" */; 168 | buildPhases = ( 169 | C20964C401A0CA0DA3EFE4FB /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 64C056B91C0AE569C3B37807 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = CalendarPicker_Example; 180 | productName = CalendarPicker; 181 | productReference = 607FACD01AFB9204008FA782 /* CalendarPicker_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* CalendarPicker_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CalendarPicker_Tests" */; 187 | buildPhases = ( 188 | 8E672535871E205B9BB87425 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = CalendarPicker_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* CalendarPicker_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 0830; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | LastSwiftMigration = 0900; 216 | }; 217 | 607FACE41AFB9204008FA782 = { 218 | CreatedOnToolsVersion = 6.3.1; 219 | LastSwiftMigration = 0900; 220 | TestTargetID = 607FACCF1AFB9204008FA782; 221 | }; 222 | }; 223 | }; 224 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CalendarPicker" */; 225 | compatibilityVersion = "Xcode 3.2"; 226 | developmentRegion = English; 227 | hasScannedForEncodings = 0; 228 | knownRegions = ( 229 | English, 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* CalendarPicker_Example */, 239 | 607FACE41AFB9204008FA782 /* CalendarPicker_Tests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 607FACCE1AFB9204008FA782 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 250 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 251 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 607FACE31AFB9204008FA782 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXShellScriptBuildPhase section */ 265 | 64C056B91C0AE569C3B37807 /* [CP] Embed Pods Frameworks */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | "${PODS_ROOT}/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-frameworks.sh", 272 | "${BUILT_PRODUCTS_DIR}/CalendarPicker/CalendarPicker.framework", 273 | ); 274 | name = "[CP] Embed Pods Frameworks"; 275 | outputPaths = ( 276 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CalendarPicker.framework", 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | shellPath = /bin/sh; 280 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-frameworks.sh\"\n"; 281 | showEnvVarsInLog = 0; 282 | }; 283 | 8E672535871E205B9BB87425 /* [CP] Check Pods Manifest.lock */ = { 284 | isa = PBXShellScriptBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | inputFileListPaths = ( 289 | ); 290 | inputPaths = ( 291 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 292 | "${PODS_ROOT}/Manifest.lock", 293 | ); 294 | name = "[CP] Check Pods Manifest.lock"; 295 | outputFileListPaths = ( 296 | ); 297 | outputPaths = ( 298 | "$(DERIVED_FILE_DIR)/Pods-CalendarPicker_Tests-checkManifestLockResult.txt", 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | shellPath = /bin/sh; 302 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 303 | showEnvVarsInLog = 0; 304 | }; 305 | C20964C401A0CA0DA3EFE4FB /* [CP] Check Pods Manifest.lock */ = { 306 | isa = PBXShellScriptBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | inputFileListPaths = ( 311 | ); 312 | inputPaths = ( 313 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 314 | "${PODS_ROOT}/Manifest.lock", 315 | ); 316 | name = "[CP] Check Pods Manifest.lock"; 317 | outputFileListPaths = ( 318 | ); 319 | outputPaths = ( 320 | "$(DERIVED_FILE_DIR)/Pods-CalendarPicker_Example-checkManifestLockResult.txt", 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | /* End PBXShellScriptBuildPhase section */ 328 | 329 | /* Begin PBXSourcesBuildPhase section */ 330 | 607FACCC1AFB9204008FA782 /* Sources */ = { 331 | isa = PBXSourcesBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 335 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 607FACE11AFB9204008FA782 /* Sources */ = { 340 | isa = PBXSourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | /* End PBXSourcesBuildPhase section */ 348 | 349 | /* Begin PBXTargetDependency section */ 350 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 351 | isa = PBXTargetDependency; 352 | target = 607FACCF1AFB9204008FA782 /* CalendarPicker_Example */; 353 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 354 | }; 355 | /* End PBXTargetDependency section */ 356 | 357 | /* Begin PBXVariantGroup section */ 358 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 359 | isa = PBXVariantGroup; 360 | children = ( 361 | 607FACDA1AFB9204008FA782 /* Base */, 362 | ); 363 | name = Main.storyboard; 364 | sourceTree = ""; 365 | }; 366 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 367 | isa = PBXVariantGroup; 368 | children = ( 369 | 607FACDF1AFB9204008FA782 /* Base */, 370 | ); 371 | name = LaunchScreen.xib; 372 | sourceTree = ""; 373 | }; 374 | /* End PBXVariantGroup section */ 375 | 376 | /* Begin XCBuildConfiguration section */ 377 | 607FACED1AFB9204008FA782 /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | ALWAYS_SEARCH_USER_PATHS = NO; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 386 | CLANG_WARN_BOOL_CONVERSION = YES; 387 | CLANG_WARN_COMMA = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 390 | CLANG_WARN_EMPTY_BODY = YES; 391 | CLANG_WARN_ENUM_CONVERSION = YES; 392 | CLANG_WARN_INFINITE_RECURSION = YES; 393 | CLANG_WARN_INT_CONVERSION = YES; 394 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 395 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 397 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 398 | CLANG_WARN_STRICT_PROTOTYPES = YES; 399 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 400 | CLANG_WARN_UNREACHABLE_CODE = YES; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 405 | ENABLE_STRICT_OBJC_MSGSEND = YES; 406 | ENABLE_TESTABILITY = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu99; 408 | GCC_DYNAMIC_NO_PIC = NO; 409 | GCC_NO_COMMON_BLOCKS = YES; 410 | GCC_OPTIMIZATION_LEVEL = 0; 411 | GCC_PREPROCESSOR_DEFINITIONS = ( 412 | "DEBUG=1", 413 | "$(inherited)", 414 | ); 415 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 423 | MTL_ENABLE_DEBUG_INFO = YES; 424 | ONLY_ACTIVE_ARCH = YES; 425 | SDKROOT = iphoneos; 426 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 427 | }; 428 | name = Debug; 429 | }; 430 | 607FACEE1AFB9204008FA782 /* Release */ = { 431 | isa = XCBuildConfiguration; 432 | buildSettings = { 433 | ALWAYS_SEARCH_USER_PATHS = NO; 434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 435 | CLANG_CXX_LIBRARY = "libc++"; 436 | CLANG_ENABLE_MODULES = YES; 437 | CLANG_ENABLE_OBJC_ARC = YES; 438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 439 | CLANG_WARN_BOOL_CONVERSION = YES; 440 | CLANG_WARN_COMMA = YES; 441 | CLANG_WARN_CONSTANT_CONVERSION = YES; 442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 443 | CLANG_WARN_EMPTY_BODY = YES; 444 | CLANG_WARN_ENUM_CONVERSION = YES; 445 | CLANG_WARN_INFINITE_RECURSION = YES; 446 | CLANG_WARN_INT_CONVERSION = YES; 447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 458 | ENABLE_NS_ASSERTIONS = NO; 459 | ENABLE_STRICT_OBJC_MSGSEND = YES; 460 | GCC_C_LANGUAGE_STANDARD = gnu99; 461 | GCC_NO_COMMON_BLOCKS = YES; 462 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 463 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 464 | GCC_WARN_UNDECLARED_SELECTOR = YES; 465 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 466 | GCC_WARN_UNUSED_FUNCTION = YES; 467 | GCC_WARN_UNUSED_VARIABLE = YES; 468 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 469 | MTL_ENABLE_DEBUG_INFO = NO; 470 | SDKROOT = iphoneos; 471 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 472 | VALIDATE_PRODUCT = YES; 473 | }; 474 | name = Release; 475 | }; 476 | 607FACF01AFB9204008FA782 /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = 3B2EE710789D8C24E0A4F067 /* Pods-CalendarPicker_Example.debug.xcconfig */; 479 | buildSettings = { 480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 481 | INFOPLIST_FILE = CalendarPicker/Info.plist; 482 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 483 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 484 | MODULE_NAME = ExampleApp; 485 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 486 | PRODUCT_NAME = "$(TARGET_NAME)"; 487 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 488 | SWIFT_VERSION = 5.0; 489 | }; 490 | name = Debug; 491 | }; 492 | 607FACF11AFB9204008FA782 /* Release */ = { 493 | isa = XCBuildConfiguration; 494 | baseConfigurationReference = D8D808BA6C5DC6E20F1FC006 /* Pods-CalendarPicker_Example.release.xcconfig */; 495 | buildSettings = { 496 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 497 | INFOPLIST_FILE = CalendarPicker/Info.plist; 498 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 500 | MODULE_NAME = ExampleApp; 501 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 502 | PRODUCT_NAME = "$(TARGET_NAME)"; 503 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 504 | SWIFT_VERSION = 5.0; 505 | }; 506 | name = Release; 507 | }; 508 | 607FACF31AFB9204008FA782 /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = FF0742AAEA42F0BCDDE8CBE3 /* Pods-CalendarPicker_Tests.debug.xcconfig */; 511 | buildSettings = { 512 | FRAMEWORK_SEARCH_PATHS = ( 513 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 514 | "$(inherited)", 515 | ); 516 | GCC_PREPROCESSOR_DEFINITIONS = ( 517 | "DEBUG=1", 518 | "$(inherited)", 519 | ); 520 | INFOPLIST_FILE = Tests/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 522 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 523 | PRODUCT_NAME = "$(TARGET_NAME)"; 524 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 525 | SWIFT_VERSION = 5.0; 526 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CalendarPicker_Example.app/CalendarPicker_Example"; 527 | }; 528 | name = Debug; 529 | }; 530 | 607FACF41AFB9204008FA782 /* Release */ = { 531 | isa = XCBuildConfiguration; 532 | baseConfigurationReference = E400FC608A34CE12DA2CBD5B /* Pods-CalendarPicker_Tests.release.xcconfig */; 533 | buildSettings = { 534 | FRAMEWORK_SEARCH_PATHS = ( 535 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 536 | "$(inherited)", 537 | ); 538 | INFOPLIST_FILE = Tests/Info.plist; 539 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 540 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 541 | PRODUCT_NAME = "$(TARGET_NAME)"; 542 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 543 | SWIFT_VERSION = 5.0; 544 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CalendarPicker_Example.app/CalendarPicker_Example"; 545 | }; 546 | name = Release; 547 | }; 548 | /* End XCBuildConfiguration section */ 549 | 550 | /* Begin XCConfigurationList section */ 551 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CalendarPicker" */ = { 552 | isa = XCConfigurationList; 553 | buildConfigurations = ( 554 | 607FACED1AFB9204008FA782 /* Debug */, 555 | 607FACEE1AFB9204008FA782 /* Release */, 556 | ); 557 | defaultConfigurationIsVisible = 0; 558 | defaultConfigurationName = Release; 559 | }; 560 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CalendarPicker_Example" */ = { 561 | isa = XCConfigurationList; 562 | buildConfigurations = ( 563 | 607FACF01AFB9204008FA782 /* Debug */, 564 | 607FACF11AFB9204008FA782 /* Release */, 565 | ); 566 | defaultConfigurationIsVisible = 0; 567 | defaultConfigurationName = Release; 568 | }; 569 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CalendarPicker_Tests" */ = { 570 | isa = XCConfigurationList; 571 | buildConfigurations = ( 572 | 607FACF31AFB9204008FA782 /* Debug */, 573 | 607FACF41AFB9204008FA782 /* Release */, 574 | ); 575 | defaultConfigurationIsVisible = 0; 576 | defaultConfigurationName = Release; 577 | }; 578 | /* End XCConfigurationList section */ 579 | }; 580 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 581 | } 582 | -------------------------------------------------------------------------------- /Example/CalendarPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/CalendarPicker.xcodeproj/xcshareddata/xcschemes/CalendarPicker-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/CalendarPicker.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/CalendarPicker.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/CalendarPicker/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CalendarPicker 4 | // 5 | // Created by pikachu987 on 07/08/2019. 6 | // Copyright (c) 2019 pikachu987. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/CalendarPicker/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/CalendarPicker/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | -------------------------------------------------------------------------------- /Example/CalendarPicker/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/CalendarPicker/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/CalendarPicker/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CalendarPicker 4 | // 5 | // Created by pikachu987 on 07/08/2019. 6 | // Copyright (c) 2019 pikachu987. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CalendarPicker 11 | 12 | class ViewController: UIViewController { 13 | @IBOutlet private weak var pickerContainerView: UIView! 14 | @IBOutlet private weak var minimumLabel: UILabel! 15 | @IBOutlet private weak var maximumLabel: UILabel! 16 | 17 | private let calendarPicker: CalendarPicker = { 18 | return CalendarPicker() 19 | }() 20 | 21 | override func viewDidLoad() { 22 | super.viewDidLoad() 23 | // Do any additional setup after loading the view, typically from a nib. 24 | 25 | self.calendarPicker.delegate = self 26 | self.pickerContainerView.addSubview(calendarPicker) 27 | self.calendarPicker.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 300) 28 | let dateCompontnt = self.calendarPicker.selectedDateComponent 29 | self.title = "\(dateCompontnt.yearString)-\(dateCompontnt.monthString)-\(dateCompontnt.dayString)(\(dateCompontnt.week?.valueShort(self.calendarPicker.localeType) ?? ""))" 30 | 31 | let leftBarButtonItem = UIBarButtonItem(title: "Today", style: .plain, target: self, action: #selector(self.todayTap(_:))) 32 | self.navigationItem.leftBarButtonItem = leftBarButtonItem 33 | 34 | let rightBarButtonItem = UIBarButtonItem(title: "Select", style: .plain, target: self, action: #selector(self.selectTap(_:))) 35 | self.navigationItem.rightBarButtonItem = rightBarButtonItem 36 | } 37 | 38 | override func didReceiveMemoryWarning() { 39 | super.didReceiveMemoryWarning() 40 | // Dispose of any resources that can be recreated. 41 | } 42 | 43 | @objc private func todayTap(_ sender: UIBarButtonItem) { 44 | self.calendarPicker.setDate(Date(), animated: true) 45 | } 46 | 47 | @objc private func selectTap(_ sender: UIBarButtonItem) { 48 | let dateCompontnt = self.calendarPicker.selectedDateComponent 49 | self.title = "\(dateCompontnt.yearString)-\(dateCompontnt.monthString)-\(dateCompontnt.dayString)(\(dateCompontnt.week?.valueShort(self.calendarPicker.localeType) ?? ""))" 50 | } 51 | 52 | 53 | 54 | @IBAction private func localeChanged(_ sender: UISegmentedControl) { 55 | if sender.selectedSegmentIndex == 0 { 56 | self.calendarPicker.localeType = .en 57 | } else if sender.selectedSegmentIndex == 1 { 58 | self.calendarPicker.localeType = .ko 59 | } else if sender.selectedSegmentIndex == 2 { 60 | self.calendarPicker.localeType = .jp 61 | } else if sender.selectedSegmentIndex == 3 { 62 | self.calendarPicker.localeType = .zh 63 | } else if sender.selectedSegmentIndex == 4 { 64 | self.calendarPicker.localeType = .default 65 | } 66 | } 67 | 68 | @IBAction private func dateFormatChanged(_ sender: UISegmentedControl) { 69 | if sender.selectedSegmentIndex == 0 { 70 | self.calendarPicker.dateFormatType = .default 71 | } else if sender.selectedSegmentIndex == 1 { 72 | self.calendarPicker.dateFormatType = .yearMonth 73 | } 74 | } 75 | 76 | @IBAction private func miniumChanged(_ sender: UISlider) { 77 | let date = Date().addingTimeInterval(-60*60*24*TimeInterval(sender.value)) 78 | self.minimumLabel.text = "minimumDate - \(date)" 79 | self.calendarPicker.minimumDate = date 80 | } 81 | 82 | @IBAction private func maximumChanged(_ sender: UISlider) { 83 | let date = Date().addingTimeInterval(60*60*24*TimeInterval(sender.value)) 84 | self.maximumLabel.text = "maximumDate - \(date)" 85 | self.calendarPicker.maximumDate = date 86 | } 87 | 88 | @IBAction func weekChanged(_ sender: UISwitch) { 89 | self.calendarPicker.isShowWeek = sender.isOn 90 | } 91 | } 92 | 93 | // MARK: CalendarPickerDelegate 94 | extension ViewController: CalendarPickerDelegate { 95 | func calendarPickerSelectDate(_ dateCompontnt: DateComponent) { 96 | self.title = "\(dateCompontnt.yearString)-\(dateCompontnt.monthString)-\(dateCompontnt.dayString)(\(dateCompontnt.week?.valueShort(self.calendarPicker.localeType) ?? ""))" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'CalendarPicker_Example' do 4 | pod 'CalendarPicker', :path => '../' 5 | 6 | target 'CalendarPicker_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CalendarPicker (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - CalendarPicker (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CalendarPicker: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CalendarPicker: 14121d42fe40b23a06eb2cf92035dcd73b2447b9 13 | 14 | PODFILE CHECKSUM: 59f918ade20eb5e0d4e16d88b332e0a2bf2dc08d 15 | 16 | COCOAPODS: 1.7.2 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/CalendarPicker.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CalendarPicker", 3 | "version": "0.1.0", 4 | "summary": "A short description of CalendarPicker.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/pikachu987/CalendarPicker", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "pikachu987": "pikachu77769@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/pikachu987/CalendarPicker.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "CalendarPicker/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CalendarPicker (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - CalendarPicker (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CalendarPicker: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CalendarPicker: 14121d42fe40b23a06eb2cf92035dcd73b2447b9 13 | 14 | PODFILE CHECKSUM: 59f918ade20eb5e0d4e16d88b332e0a2bf2dc08d 15 | 16 | COCOAPODS: 1.7.2 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 05C16D8BA63C62F3B10ADEBD78D9BDED /* CalendarPicker-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6232B981781D407A74326D219E89625B /* CalendarPicker-dummy.m */; }; 11 | 0D14380AAF3C291A8B23CDE9A916360C /* CalendarPicker-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = EFD1E4F3797786B30E937E268258F883 /* CalendarPicker-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 1659A69E25EDFFDF00E783F8 /* DateFormatType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1659A69D25EDFFDF00E783F8 /* DateFormatType.swift */; }; 13 | 1887A83622D321BA00CB1121 /* CalendarPicker+LocalizeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1887A83522D321BA00CB1121 /* CalendarPicker+LocalizeType.swift */; }; 14 | 1887A83822D321F500CB1121 /* DateComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1887A83722D321F500CB1121 /* DateComponent.swift */; }; 15 | 1887A83A22D3224B00CB1121 /* Date+dateComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1887A83922D3224B00CB1121 /* Date+dateComponent.swift */; }; 16 | 1887A83C22D3226C00CB1121 /* DateComponent+Week.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1887A83B22D3226C00CB1121 /* DateComponent+Week.swift */; }; 17 | 1887A83E22D322B400CB1121 /* DateType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1887A83D22D322B400CB1121 /* DateType.swift */; }; 18 | 2AB4528282C8963AE8B4847447776FC2 /* Pods-CalendarPicker_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A21AC0A59F5B4AAD500448873AE137AF /* Pods-CalendarPicker_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | 2E169F92CA7F6E06FEC24AECCA8C9ED2 /* Pods-CalendarPicker_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B71D7E321DFB1C57A44AE1CE28FC02E /* Pods-CalendarPicker_Example-dummy.m */; }; 20 | 2F062B46259B6506746167083DC4A4CF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 21 | 7AFEC6968A8C3C6DB6566464E08E4E0B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 22 | A5E68EC6BA5ACF60FFA6693AC21B61A6 /* Pods-CalendarPicker_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B02BA1EDF5B59DA01189374A2767C766 /* Pods-CalendarPicker_Tests-dummy.m */; }; 23 | D8C69CD70B96B865ED6F0690E1C2CE72 /* CalendarPicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6BC3689F6F568278067245B4E60D4343 /* CalendarPicker.swift */; }; 24 | E26B0F2179EB5DD2B7845E9F56E80919 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 25 | E850321057E482B6A0F2698A0DD8197B /* Pods-CalendarPicker_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = D052B2CDED414F8AB5EF8C4AD7C66718 /* Pods-CalendarPicker_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 62710C102DE02DD19CC88C94C2652605 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = A3037648952C788D4E70E0A14B276675; 34 | remoteInfo = CalendarPicker; 35 | }; 36 | A0A6F24FB4E0AF8077F93106742C8FDB /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 40124FFF3F809FAC94949D602BAA7D60; 41 | remoteInfo = "Pods-CalendarPicker_Example"; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 06D11F889136282982FCFD2CD30B231D /* Pods-CalendarPicker_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CalendarPicker_Tests-Info.plist"; sourceTree = ""; }; 47 | 0C69397735888A883C5FEFF38ED90A8A /* CalendarPicker.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = CalendarPicker.podspec; sourceTree = ""; tabWidth = 2; }; 48 | 1659A69D25EDFFDF00E783F8 /* DateFormatType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DateFormatType.swift; path = CalendarPicker/Classes/DateFormatType.swift; sourceTree = ""; }; 49 | 1887A83522D321BA00CB1121 /* CalendarPicker+LocalizeType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "CalendarPicker+LocalizeType.swift"; path = "CalendarPicker/Classes/CalendarPicker+LocalizeType.swift"; sourceTree = ""; }; 50 | 1887A83722D321F500CB1121 /* DateComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DateComponent.swift; path = CalendarPicker/Classes/DateComponent.swift; sourceTree = ""; }; 51 | 1887A83922D3224B00CB1121 /* Date+dateComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "Date+dateComponent.swift"; path = "CalendarPicker/Classes/Date+dateComponent.swift"; sourceTree = ""; }; 52 | 1887A83B22D3226C00CB1121 /* DateComponent+Week.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "DateComponent+Week.swift"; path = "CalendarPicker/Classes/DateComponent+Week.swift"; sourceTree = ""; }; 53 | 1887A83D22D322B400CB1121 /* DateType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DateType.swift; path = CalendarPicker/Classes/DateType.swift; sourceTree = ""; }; 54 | 1FFB46D85A327C75B2EFF081BBB554C9 /* Pods-CalendarPicker_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CalendarPicker_Example-acknowledgements.plist"; sourceTree = ""; }; 55 | 203533F9F22CB353AF46956A839FA529 /* Pods-CalendarPicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarPicker_Tests.release.xcconfig"; sourceTree = ""; }; 56 | 240EE9E27E7CE0D2E3F94078DA56E514 /* CalendarPicker.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CalendarPicker.xcconfig; sourceTree = ""; }; 57 | 2B71D7E321DFB1C57A44AE1CE28FC02E /* Pods-CalendarPicker_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CalendarPicker_Example-dummy.m"; sourceTree = ""; }; 58 | 2C101E84971F5338EF7BAAC027156B2C /* Pods-CalendarPicker_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CalendarPicker_Example.modulemap"; sourceTree = ""; }; 59 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 60 | 3DB56792A6E0293C0112CD262CFE3207 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 61 | 490C23CB8220127DBB814BA16186B198 /* Pods_CalendarPicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CalendarPicker_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 4D1C38891729205A6014E96519D1B336 /* Pods-CalendarPicker_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CalendarPicker_Tests-acknowledgements.plist"; sourceTree = ""; }; 63 | 61D282A4A7C589A41944CB2839B7EC28 /* Pods-CalendarPicker_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CalendarPicker_Example-Info.plist"; sourceTree = ""; }; 64 | 6232B981781D407A74326D219E89625B /* CalendarPicker-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CalendarPicker-dummy.m"; sourceTree = ""; }; 65 | 6BC3689F6F568278067245B4E60D4343 /* CalendarPicker.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CalendarPicker.swift; path = CalendarPicker/Classes/CalendarPicker.swift; sourceTree = ""; }; 66 | 6E8381AFE39D199CB27B69DCB096B18D /* CalendarPicker-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "CalendarPicker-Info.plist"; sourceTree = ""; }; 67 | 7C16C79DDC9EFB0B95273CB3CB1CC5C5 /* Pods-CalendarPicker_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CalendarPicker_Tests-acknowledgements.markdown"; sourceTree = ""; }; 68 | 87658FDB00E507DF0B1B3637BDC02242 /* CalendarPicker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CalendarPicker.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 8A2372E7938CDC135FD62F01D38C3E0B /* Pods-CalendarPicker_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CalendarPicker_Tests.modulemap"; sourceTree = ""; }; 70 | 90B44650F254A3B9B10790DB186F3213 /* Pods-CalendarPicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarPicker_Tests.debug.xcconfig"; sourceTree = ""; }; 71 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 72 | A08F82EAF83067F739628C3380001817 /* CalendarPicker-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CalendarPicker-prefix.pch"; sourceTree = ""; }; 73 | A21AC0A59F5B4AAD500448873AE137AF /* Pods-CalendarPicker_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CalendarPicker_Example-umbrella.h"; sourceTree = ""; }; 74 | AA7EAA340EBEB2169A06869AE123244E /* Pods-CalendarPicker_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CalendarPicker_Example-acknowledgements.markdown"; sourceTree = ""; }; 75 | B02BA1EDF5B59DA01189374A2767C766 /* Pods-CalendarPicker_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CalendarPicker_Tests-dummy.m"; sourceTree = ""; }; 76 | B3AF7F2D83550F82AF8C2F598E5EDFFB /* Pods-CalendarPicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarPicker_Example.release.xcconfig"; sourceTree = ""; }; 77 | B7DF3A98054EC3FC74CC843A18D68203 /* Pods_CalendarPicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CalendarPicker_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | C12E5033CC06E04C293AFB5943DA19D9 /* CalendarPicker.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = CalendarPicker.modulemap; sourceTree = ""; }; 79 | C14B30C53BE4585094C902D2985736CE /* Pods-CalendarPicker_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CalendarPicker_Example-frameworks.sh"; sourceTree = ""; }; 80 | CA6998C8276FDD4173BF08ADA61E693C /* Pods-CalendarPicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarPicker_Example.debug.xcconfig"; sourceTree = ""; }; 81 | D052B2CDED414F8AB5EF8C4AD7C66718 /* Pods-CalendarPicker_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CalendarPicker_Tests-umbrella.h"; sourceTree = ""; }; 82 | EFD1E4F3797786B30E937E268258F883 /* CalendarPicker-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CalendarPicker-umbrella.h"; sourceTree = ""; }; 83 | F36AB17B9938BD3D897999CAA3E46A13 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 84 | /* End PBXFileReference section */ 85 | 86 | /* Begin PBXFrameworksBuildPhase section */ 87 | 1D1FB57F0C264CBD1768953D1D4CA373 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | E26B0F2179EB5DD2B7845E9F56E80919 /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | A70076458E4D20F38CE757636EB8D6E8 /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | 7AFEC6968A8C3C6DB6566464E08E4E0B /* Foundation.framework in Frameworks */, 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | D1C4A4E9018F651312283D6D47995905 /* Frameworks */ = { 104 | isa = PBXFrameworksBuildPhase; 105 | buildActionMask = 2147483647; 106 | files = ( 107 | 2F062B46259B6506746167083DC4A4CF /* Foundation.framework in Frameworks */, 108 | ); 109 | runOnlyForDeploymentPostprocessing = 0; 110 | }; 111 | /* End PBXFrameworksBuildPhase section */ 112 | 113 | /* Begin PBXGroup section */ 114 | 202FE860B8B5B9D2253B7BB4DE728872 /* CalendarPicker */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 6BC3689F6F568278067245B4E60D4343 /* CalendarPicker.swift */, 118 | 1887A83522D321BA00CB1121 /* CalendarPicker+LocalizeType.swift */, 119 | 1887A83722D321F500CB1121 /* DateComponent.swift */, 120 | 1887A83B22D3226C00CB1121 /* DateComponent+Week.swift */, 121 | 1887A83D22D322B400CB1121 /* DateType.swift */, 122 | 1659A69D25EDFFDF00E783F8 /* DateFormatType.swift */, 123 | 1887A83922D3224B00CB1121 /* Date+dateComponent.swift */, 124 | EC0F54FC42447299C7A3E5ECE79BD267 /* Pod */, 125 | FF0C2AA70040BF629A868647B389FD08 /* Support Files */, 126 | ); 127 | name = CalendarPicker; 128 | path = ../..; 129 | sourceTree = ""; 130 | }; 131 | 6399F03CDA7D631303F7E188EB142E8A /* Pods-CalendarPicker_Tests */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 8A2372E7938CDC135FD62F01D38C3E0B /* Pods-CalendarPicker_Tests.modulemap */, 135 | 7C16C79DDC9EFB0B95273CB3CB1CC5C5 /* Pods-CalendarPicker_Tests-acknowledgements.markdown */, 136 | 4D1C38891729205A6014E96519D1B336 /* Pods-CalendarPicker_Tests-acknowledgements.plist */, 137 | B02BA1EDF5B59DA01189374A2767C766 /* Pods-CalendarPicker_Tests-dummy.m */, 138 | 06D11F889136282982FCFD2CD30B231D /* Pods-CalendarPicker_Tests-Info.plist */, 139 | D052B2CDED414F8AB5EF8C4AD7C66718 /* Pods-CalendarPicker_Tests-umbrella.h */, 140 | 90B44650F254A3B9B10790DB186F3213 /* Pods-CalendarPicker_Tests.debug.xcconfig */, 141 | 203533F9F22CB353AF46956A839FA529 /* Pods-CalendarPicker_Tests.release.xcconfig */, 142 | ); 143 | name = "Pods-CalendarPicker_Tests"; 144 | path = "Target Support Files/Pods-CalendarPicker_Tests"; 145 | sourceTree = ""; 146 | }; 147 | AB7F972359810628560D652BBE03D82C /* Products */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 87658FDB00E507DF0B1B3637BDC02242 /* CalendarPicker.framework */, 151 | B7DF3A98054EC3FC74CC843A18D68203 /* Pods_CalendarPicker_Example.framework */, 152 | 490C23CB8220127DBB814BA16186B198 /* Pods_CalendarPicker_Tests.framework */, 153 | ); 154 | name = Products; 155 | sourceTree = ""; 156 | }; 157 | BB22902F83412CCD93D07D776808AA7D /* Pods-CalendarPicker_Example */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 2C101E84971F5338EF7BAAC027156B2C /* Pods-CalendarPicker_Example.modulemap */, 161 | AA7EAA340EBEB2169A06869AE123244E /* Pods-CalendarPicker_Example-acknowledgements.markdown */, 162 | 1FFB46D85A327C75B2EFF081BBB554C9 /* Pods-CalendarPicker_Example-acknowledgements.plist */, 163 | 2B71D7E321DFB1C57A44AE1CE28FC02E /* Pods-CalendarPicker_Example-dummy.m */, 164 | C14B30C53BE4585094C902D2985736CE /* Pods-CalendarPicker_Example-frameworks.sh */, 165 | 61D282A4A7C589A41944CB2839B7EC28 /* Pods-CalendarPicker_Example-Info.plist */, 166 | A21AC0A59F5B4AAD500448873AE137AF /* Pods-CalendarPicker_Example-umbrella.h */, 167 | CA6998C8276FDD4173BF08ADA61E693C /* Pods-CalendarPicker_Example.debug.xcconfig */, 168 | B3AF7F2D83550F82AF8C2F598E5EDFFB /* Pods-CalendarPicker_Example.release.xcconfig */, 169 | ); 170 | name = "Pods-CalendarPicker_Example"; 171 | path = "Target Support Files/Pods-CalendarPicker_Example"; 172 | sourceTree = ""; 173 | }; 174 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 178 | ); 179 | name = iOS; 180 | sourceTree = ""; 181 | }; 182 | C802B60D6E6807F54D519A52DE1775CE /* Targets Support Files */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | BB22902F83412CCD93D07D776808AA7D /* Pods-CalendarPicker_Example */, 186 | 6399F03CDA7D631303F7E188EB142E8A /* Pods-CalendarPicker_Tests */, 187 | ); 188 | name = "Targets Support Files"; 189 | sourceTree = ""; 190 | }; 191 | CF1408CF629C7361332E53B88F7BD30C = { 192 | isa = PBXGroup; 193 | children = ( 194 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 195 | FA393C763C0DC31DB6903AAB8922ABE2 /* Development Pods */, 196 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 197 | AB7F972359810628560D652BBE03D82C /* Products */, 198 | C802B60D6E6807F54D519A52DE1775CE /* Targets Support Files */, 199 | ); 200 | sourceTree = ""; 201 | }; 202 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 206 | ); 207 | name = Frameworks; 208 | sourceTree = ""; 209 | }; 210 | EC0F54FC42447299C7A3E5ECE79BD267 /* Pod */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 0C69397735888A883C5FEFF38ED90A8A /* CalendarPicker.podspec */, 214 | 3DB56792A6E0293C0112CD262CFE3207 /* LICENSE */, 215 | F36AB17B9938BD3D897999CAA3E46A13 /* README.md */, 216 | ); 217 | name = Pod; 218 | sourceTree = ""; 219 | }; 220 | FA393C763C0DC31DB6903AAB8922ABE2 /* Development Pods */ = { 221 | isa = PBXGroup; 222 | children = ( 223 | 202FE860B8B5B9D2253B7BB4DE728872 /* CalendarPicker */, 224 | ); 225 | name = "Development Pods"; 226 | sourceTree = ""; 227 | }; 228 | FF0C2AA70040BF629A868647B389FD08 /* Support Files */ = { 229 | isa = PBXGroup; 230 | children = ( 231 | C12E5033CC06E04C293AFB5943DA19D9 /* CalendarPicker.modulemap */, 232 | 240EE9E27E7CE0D2E3F94078DA56E514 /* CalendarPicker.xcconfig */, 233 | 6232B981781D407A74326D219E89625B /* CalendarPicker-dummy.m */, 234 | 6E8381AFE39D199CB27B69DCB096B18D /* CalendarPicker-Info.plist */, 235 | A08F82EAF83067F739628C3380001817 /* CalendarPicker-prefix.pch */, 236 | EFD1E4F3797786B30E937E268258F883 /* CalendarPicker-umbrella.h */, 237 | ); 238 | name = "Support Files"; 239 | path = "Example/Pods/Target Support Files/CalendarPicker"; 240 | sourceTree = ""; 241 | }; 242 | /* End PBXGroup section */ 243 | 244 | /* Begin PBXHeadersBuildPhase section */ 245 | 781783502348C0A73D087FBC1AB43A74 /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 2AB4528282C8963AE8B4847447776FC2 /* Pods-CalendarPicker_Example-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | 9AADC8556A675858ECB0CEB430BE2602 /* Headers */ = { 254 | isa = PBXHeadersBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 0D14380AAF3C291A8B23CDE9A916360C /* CalendarPicker-umbrella.h in Headers */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | AD6597878D5D5BE6149D9997BA442D57 /* Headers */ = { 262 | isa = PBXHeadersBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | E850321057E482B6A0F2698A0DD8197B /* Pods-CalendarPicker_Tests-umbrella.h in Headers */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | /* End PBXHeadersBuildPhase section */ 270 | 271 | /* Begin PBXNativeTarget section */ 272 | 40124FFF3F809FAC94949D602BAA7D60 /* Pods-CalendarPicker_Example */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = B2855C1CF01F5C08584AE4969F796418 /* Build configuration list for PBXNativeTarget "Pods-CalendarPicker_Example" */; 275 | buildPhases = ( 276 | 781783502348C0A73D087FBC1AB43A74 /* Headers */, 277 | 55C6817F16A9FF04F1CBF17B98CA2FFF /* Sources */, 278 | 1D1FB57F0C264CBD1768953D1D4CA373 /* Frameworks */, 279 | 58A56CE4D4E255BD92535AE010FDDE7D /* Resources */, 280 | ); 281 | buildRules = ( 282 | ); 283 | dependencies = ( 284 | 1B6AF9644502CC8CFB02F151425694D1 /* PBXTargetDependency */, 285 | ); 286 | name = "Pods-CalendarPicker_Example"; 287 | productName = "Pods-CalendarPicker_Example"; 288 | productReference = B7DF3A98054EC3FC74CC843A18D68203 /* Pods_CalendarPicker_Example.framework */; 289 | productType = "com.apple.product-type.framework"; 290 | }; 291 | 43792987E52555BEF75E848C45862715 /* Pods-CalendarPicker_Tests */ = { 292 | isa = PBXNativeTarget; 293 | buildConfigurationList = FE8AB306BBA9B16B3019546695DD03EE /* Build configuration list for PBXNativeTarget "Pods-CalendarPicker_Tests" */; 294 | buildPhases = ( 295 | AD6597878D5D5BE6149D9997BA442D57 /* Headers */, 296 | DB082AB3C1565F784888EA1EA0E1040B /* Sources */, 297 | A70076458E4D20F38CE757636EB8D6E8 /* Frameworks */, 298 | 1108A4FF616183E9BBEBCC1C16642419 /* Resources */, 299 | ); 300 | buildRules = ( 301 | ); 302 | dependencies = ( 303 | 9ACF3C5FE73F903D9A202D2639C23E51 /* PBXTargetDependency */, 304 | ); 305 | name = "Pods-CalendarPicker_Tests"; 306 | productName = "Pods-CalendarPicker_Tests"; 307 | productReference = 490C23CB8220127DBB814BA16186B198 /* Pods_CalendarPicker_Tests.framework */; 308 | productType = "com.apple.product-type.framework"; 309 | }; 310 | A3037648952C788D4E70E0A14B276675 /* CalendarPicker */ = { 311 | isa = PBXNativeTarget; 312 | buildConfigurationList = 152A7F6B4142664544E574EA7A9768DD /* Build configuration list for PBXNativeTarget "CalendarPicker" */; 313 | buildPhases = ( 314 | 9AADC8556A675858ECB0CEB430BE2602 /* Headers */, 315 | B5FF1DD878E10E7388954984EBA52DA2 /* Sources */, 316 | D1C4A4E9018F651312283D6D47995905 /* Frameworks */, 317 | 2F0ED732B6B864FF8638393DF909E692 /* Resources */, 318 | ); 319 | buildRules = ( 320 | ); 321 | dependencies = ( 322 | ); 323 | name = CalendarPicker; 324 | productName = CalendarPicker; 325 | productReference = 87658FDB00E507DF0B1B3637BDC02242 /* CalendarPicker.framework */; 326 | productType = "com.apple.product-type.framework"; 327 | }; 328 | /* End PBXNativeTarget section */ 329 | 330 | /* Begin PBXProject section */ 331 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 332 | isa = PBXProject; 333 | attributes = { 334 | LastSwiftUpdateCheck = 1100; 335 | LastUpgradeCheck = 1100; 336 | }; 337 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 338 | compatibilityVersion = "Xcode 3.2"; 339 | developmentRegion = en; 340 | hasScannedForEncodings = 0; 341 | knownRegions = ( 342 | en, 343 | ); 344 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 345 | productRefGroup = AB7F972359810628560D652BBE03D82C /* Products */; 346 | projectDirPath = ""; 347 | projectRoot = ""; 348 | targets = ( 349 | A3037648952C788D4E70E0A14B276675 /* CalendarPicker */, 350 | 40124FFF3F809FAC94949D602BAA7D60 /* Pods-CalendarPicker_Example */, 351 | 43792987E52555BEF75E848C45862715 /* Pods-CalendarPicker_Tests */, 352 | ); 353 | }; 354 | /* End PBXProject section */ 355 | 356 | /* Begin PBXResourcesBuildPhase section */ 357 | 1108A4FF616183E9BBEBCC1C16642419 /* Resources */ = { 358 | isa = PBXResourcesBuildPhase; 359 | buildActionMask = 2147483647; 360 | files = ( 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | }; 364 | 2F0ED732B6B864FF8638393DF909E692 /* Resources */ = { 365 | isa = PBXResourcesBuildPhase; 366 | buildActionMask = 2147483647; 367 | files = ( 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | }; 371 | 58A56CE4D4E255BD92535AE010FDDE7D /* Resources */ = { 372 | isa = PBXResourcesBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | /* End PBXResourcesBuildPhase section */ 379 | 380 | /* Begin PBXSourcesBuildPhase section */ 381 | 55C6817F16A9FF04F1CBF17B98CA2FFF /* Sources */ = { 382 | isa = PBXSourcesBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | 2E169F92CA7F6E06FEC24AECCA8C9ED2 /* Pods-CalendarPicker_Example-dummy.m in Sources */, 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | }; 389 | B5FF1DD878E10E7388954984EBA52DA2 /* Sources */ = { 390 | isa = PBXSourcesBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | 1659A69E25EDFFDF00E783F8 /* DateFormatType.swift in Sources */, 394 | 05C16D8BA63C62F3B10ADEBD78D9BDED /* CalendarPicker-dummy.m in Sources */, 395 | 1887A83622D321BA00CB1121 /* CalendarPicker+LocalizeType.swift in Sources */, 396 | D8C69CD70B96B865ED6F0690E1C2CE72 /* CalendarPicker.swift in Sources */, 397 | 1887A83822D321F500CB1121 /* DateComponent.swift in Sources */, 398 | 1887A83A22D3224B00CB1121 /* Date+dateComponent.swift in Sources */, 399 | 1887A83E22D322B400CB1121 /* DateType.swift in Sources */, 400 | 1887A83C22D3226C00CB1121 /* DateComponent+Week.swift in Sources */, 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | }; 404 | DB082AB3C1565F784888EA1EA0E1040B /* Sources */ = { 405 | isa = PBXSourcesBuildPhase; 406 | buildActionMask = 2147483647; 407 | files = ( 408 | A5E68EC6BA5ACF60FFA6693AC21B61A6 /* Pods-CalendarPicker_Tests-dummy.m in Sources */, 409 | ); 410 | runOnlyForDeploymentPostprocessing = 0; 411 | }; 412 | /* End PBXSourcesBuildPhase section */ 413 | 414 | /* Begin PBXTargetDependency section */ 415 | 1B6AF9644502CC8CFB02F151425694D1 /* PBXTargetDependency */ = { 416 | isa = PBXTargetDependency; 417 | name = CalendarPicker; 418 | target = A3037648952C788D4E70E0A14B276675 /* CalendarPicker */; 419 | targetProxy = 62710C102DE02DD19CC88C94C2652605 /* PBXContainerItemProxy */; 420 | }; 421 | 9ACF3C5FE73F903D9A202D2639C23E51 /* PBXTargetDependency */ = { 422 | isa = PBXTargetDependency; 423 | name = "Pods-CalendarPicker_Example"; 424 | target = 40124FFF3F809FAC94949D602BAA7D60 /* Pods-CalendarPicker_Example */; 425 | targetProxy = A0A6F24FB4E0AF8077F93106742C8FDB /* PBXContainerItemProxy */; 426 | }; 427 | /* End PBXTargetDependency section */ 428 | 429 | /* Begin XCBuildConfiguration section */ 430 | 1DAD82BE2AD85E5625733B6D73AC6820 /* Debug */ = { 431 | isa = XCBuildConfiguration; 432 | baseConfigurationReference = 90B44650F254A3B9B10790DB186F3213 /* Pods-CalendarPicker_Tests.debug.xcconfig */; 433 | buildSettings = { 434 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 435 | CODE_SIGN_IDENTITY = ""; 436 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 437 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 438 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 439 | CURRENT_PROJECT_VERSION = 1; 440 | DEFINES_MODULE = YES; 441 | DYLIB_COMPATIBILITY_VERSION = 1; 442 | DYLIB_CURRENT_VERSION = 1; 443 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 444 | INFOPLIST_FILE = "Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests-Info.plist"; 445 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 446 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 447 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 448 | MACH_O_TYPE = staticlib; 449 | MACOSX_DEPLOYMENT_TARGET = 10.9; 450 | MODULEMAP_FILE = "Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests.modulemap"; 451 | OTHER_LDFLAGS = ""; 452 | OTHER_LIBTOOLFLAGS = ""; 453 | PODS_ROOT = "$(SRCROOT)"; 454 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 455 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 456 | SDKROOT = iphoneos; 457 | SKIP_INSTALL = YES; 458 | TARGETED_DEVICE_FAMILY = "1,2"; 459 | TVOS_DEPLOYMENT_TARGET = 9.0; 460 | VERSIONING_SYSTEM = "apple-generic"; 461 | VERSION_INFO_PREFIX = ""; 462 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 463 | }; 464 | name = Debug; 465 | }; 466 | 441BC69F8AF8D13770DC20A8776CD400 /* Debug */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 240EE9E27E7CE0D2E3F94078DA56E514 /* CalendarPicker.xcconfig */; 469 | buildSettings = { 470 | CODE_SIGN_IDENTITY = ""; 471 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 472 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 473 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 474 | CURRENT_PROJECT_VERSION = 1; 475 | DEFINES_MODULE = YES; 476 | DYLIB_COMPATIBILITY_VERSION = 1; 477 | DYLIB_CURRENT_VERSION = 1; 478 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 479 | GCC_PREFIX_HEADER = "Target Support Files/CalendarPicker/CalendarPicker-prefix.pch"; 480 | INFOPLIST_FILE = "Target Support Files/CalendarPicker/CalendarPicker-Info.plist"; 481 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 482 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 483 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 484 | MACOSX_DEPLOYMENT_TARGET = 10.9; 485 | MARKETING_VERSION = 0.1.3; 486 | MODULEMAP_FILE = "Target Support Files/CalendarPicker/CalendarPicker.modulemap"; 487 | PRODUCT_MODULE_NAME = CalendarPicker; 488 | PRODUCT_NAME = CalendarPicker; 489 | SDKROOT = iphoneos; 490 | SKIP_INSTALL = YES; 491 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 492 | SWIFT_VERSION = 5.0; 493 | TARGETED_DEVICE_FAMILY = "1,2"; 494 | TVOS_DEPLOYMENT_TARGET = 9.0; 495 | VERSIONING_SYSTEM = "apple-generic"; 496 | VERSION_INFO_PREFIX = ""; 497 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 498 | }; 499 | name = Debug; 500 | }; 501 | 5426CB7FE65A6EEC9D6E76DCED95DB4A /* Release */ = { 502 | isa = XCBuildConfiguration; 503 | baseConfigurationReference = 203533F9F22CB353AF46956A839FA529 /* Pods-CalendarPicker_Tests.release.xcconfig */; 504 | buildSettings = { 505 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 506 | CODE_SIGN_IDENTITY = ""; 507 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 508 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 509 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 510 | CURRENT_PROJECT_VERSION = 1; 511 | DEFINES_MODULE = YES; 512 | DYLIB_COMPATIBILITY_VERSION = 1; 513 | DYLIB_CURRENT_VERSION = 1; 514 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 515 | INFOPLIST_FILE = "Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests-Info.plist"; 516 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 517 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 519 | MACH_O_TYPE = staticlib; 520 | MACOSX_DEPLOYMENT_TARGET = 10.9; 521 | MODULEMAP_FILE = "Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests.modulemap"; 522 | OTHER_LDFLAGS = ""; 523 | OTHER_LIBTOOLFLAGS = ""; 524 | PODS_ROOT = "$(SRCROOT)"; 525 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 526 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 527 | SDKROOT = iphoneos; 528 | SKIP_INSTALL = YES; 529 | TARGETED_DEVICE_FAMILY = "1,2"; 530 | TVOS_DEPLOYMENT_TARGET = 9.0; 531 | VALIDATE_PRODUCT = YES; 532 | VERSIONING_SYSTEM = "apple-generic"; 533 | VERSION_INFO_PREFIX = ""; 534 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 535 | }; 536 | name = Release; 537 | }; 538 | 89EB3B6F1C0A2AF01FE2F409AE2083EF /* Release */ = { 539 | isa = XCBuildConfiguration; 540 | baseConfigurationReference = 240EE9E27E7CE0D2E3F94078DA56E514 /* CalendarPicker.xcconfig */; 541 | buildSettings = { 542 | CODE_SIGN_IDENTITY = ""; 543 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 544 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 545 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 546 | CURRENT_PROJECT_VERSION = 1; 547 | DEFINES_MODULE = YES; 548 | DYLIB_COMPATIBILITY_VERSION = 1; 549 | DYLIB_CURRENT_VERSION = 1; 550 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 551 | GCC_PREFIX_HEADER = "Target Support Files/CalendarPicker/CalendarPicker-prefix.pch"; 552 | INFOPLIST_FILE = "Target Support Files/CalendarPicker/CalendarPicker-Info.plist"; 553 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 554 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 555 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 556 | MACOSX_DEPLOYMENT_TARGET = 10.9; 557 | MARKETING_VERSION = 0.1.3; 558 | MODULEMAP_FILE = "Target Support Files/CalendarPicker/CalendarPicker.modulemap"; 559 | PRODUCT_MODULE_NAME = CalendarPicker; 560 | PRODUCT_NAME = CalendarPicker; 561 | SDKROOT = iphoneos; 562 | SKIP_INSTALL = YES; 563 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 564 | SWIFT_VERSION = 5.0; 565 | TARGETED_DEVICE_FAMILY = "1,2"; 566 | TVOS_DEPLOYMENT_TARGET = 9.0; 567 | VALIDATE_PRODUCT = YES; 568 | VERSIONING_SYSTEM = "apple-generic"; 569 | VERSION_INFO_PREFIX = ""; 570 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 571 | }; 572 | name = Release; 573 | }; 574 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 575 | isa = XCBuildConfiguration; 576 | buildSettings = { 577 | ALWAYS_SEARCH_USER_PATHS = NO; 578 | CLANG_ANALYZER_NONNULL = YES; 579 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 580 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 581 | CLANG_CXX_LIBRARY = "libc++"; 582 | CLANG_ENABLE_MODULES = YES; 583 | CLANG_ENABLE_OBJC_ARC = YES; 584 | CLANG_ENABLE_OBJC_WEAK = YES; 585 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 586 | CLANG_WARN_BOOL_CONVERSION = YES; 587 | CLANG_WARN_COMMA = YES; 588 | CLANG_WARN_CONSTANT_CONVERSION = YES; 589 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 590 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 591 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 592 | CLANG_WARN_EMPTY_BODY = YES; 593 | CLANG_WARN_ENUM_CONVERSION = YES; 594 | CLANG_WARN_INFINITE_RECURSION = YES; 595 | CLANG_WARN_INT_CONVERSION = YES; 596 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 597 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 598 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 599 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 600 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 601 | CLANG_WARN_STRICT_PROTOTYPES = YES; 602 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 603 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 604 | CLANG_WARN_UNREACHABLE_CODE = YES; 605 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 606 | COPY_PHASE_STRIP = NO; 607 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 608 | ENABLE_NS_ASSERTIONS = NO; 609 | ENABLE_STRICT_OBJC_MSGSEND = YES; 610 | GCC_C_LANGUAGE_STANDARD = gnu11; 611 | GCC_NO_COMMON_BLOCKS = YES; 612 | GCC_PREPROCESSOR_DEFINITIONS = ( 613 | "POD_CONFIGURATION_RELEASE=1", 614 | "$(inherited)", 615 | ); 616 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 617 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 618 | GCC_WARN_UNDECLARED_SELECTOR = YES; 619 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 620 | GCC_WARN_UNUSED_FUNCTION = YES; 621 | GCC_WARN_UNUSED_VARIABLE = YES; 622 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 623 | MACOSX_DEPLOYMENT_TARGET = 10.9; 624 | MTL_ENABLE_DEBUG_INFO = NO; 625 | MTL_FAST_MATH = YES; 626 | PRODUCT_NAME = "$(TARGET_NAME)"; 627 | STRIP_INSTALLED_PRODUCT = NO; 628 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 629 | SWIFT_VERSION = 5.0; 630 | SYMROOT = "${SRCROOT}/../build"; 631 | TVOS_DEPLOYMENT_TARGET = 9.0; 632 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 633 | }; 634 | name = Release; 635 | }; 636 | B83DA53667A9990D1DB9A63FA94D8910 /* Release */ = { 637 | isa = XCBuildConfiguration; 638 | baseConfigurationReference = B3AF7F2D83550F82AF8C2F598E5EDFFB /* Pods-CalendarPicker_Example.release.xcconfig */; 639 | buildSettings = { 640 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 641 | CODE_SIGN_IDENTITY = ""; 642 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 643 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 644 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 645 | CURRENT_PROJECT_VERSION = 1; 646 | DEFINES_MODULE = YES; 647 | DYLIB_COMPATIBILITY_VERSION = 1; 648 | DYLIB_CURRENT_VERSION = 1; 649 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 650 | INFOPLIST_FILE = "Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-Info.plist"; 651 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 652 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 653 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 654 | MACH_O_TYPE = staticlib; 655 | MACOSX_DEPLOYMENT_TARGET = 10.9; 656 | MODULEMAP_FILE = "Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example.modulemap"; 657 | OTHER_LDFLAGS = ""; 658 | OTHER_LIBTOOLFLAGS = ""; 659 | PODS_ROOT = "$(SRCROOT)"; 660 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 661 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 662 | SDKROOT = iphoneos; 663 | SKIP_INSTALL = YES; 664 | TARGETED_DEVICE_FAMILY = "1,2"; 665 | TVOS_DEPLOYMENT_TARGET = 9.0; 666 | VALIDATE_PRODUCT = YES; 667 | VERSIONING_SYSTEM = "apple-generic"; 668 | VERSION_INFO_PREFIX = ""; 669 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 670 | }; 671 | name = Release; 672 | }; 673 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 674 | isa = XCBuildConfiguration; 675 | buildSettings = { 676 | ALWAYS_SEARCH_USER_PATHS = NO; 677 | CLANG_ANALYZER_NONNULL = YES; 678 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 679 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 680 | CLANG_CXX_LIBRARY = "libc++"; 681 | CLANG_ENABLE_MODULES = YES; 682 | CLANG_ENABLE_OBJC_ARC = YES; 683 | CLANG_ENABLE_OBJC_WEAK = YES; 684 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 685 | CLANG_WARN_BOOL_CONVERSION = YES; 686 | CLANG_WARN_COMMA = YES; 687 | CLANG_WARN_CONSTANT_CONVERSION = YES; 688 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 689 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 690 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 691 | CLANG_WARN_EMPTY_BODY = YES; 692 | CLANG_WARN_ENUM_CONVERSION = YES; 693 | CLANG_WARN_INFINITE_RECURSION = YES; 694 | CLANG_WARN_INT_CONVERSION = YES; 695 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 696 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 697 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 698 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 699 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 700 | CLANG_WARN_STRICT_PROTOTYPES = YES; 701 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 702 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 703 | CLANG_WARN_UNREACHABLE_CODE = YES; 704 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 705 | COPY_PHASE_STRIP = NO; 706 | DEBUG_INFORMATION_FORMAT = dwarf; 707 | ENABLE_STRICT_OBJC_MSGSEND = YES; 708 | ENABLE_TESTABILITY = YES; 709 | GCC_C_LANGUAGE_STANDARD = gnu11; 710 | GCC_DYNAMIC_NO_PIC = NO; 711 | GCC_NO_COMMON_BLOCKS = YES; 712 | GCC_OPTIMIZATION_LEVEL = 0; 713 | GCC_PREPROCESSOR_DEFINITIONS = ( 714 | "POD_CONFIGURATION_DEBUG=1", 715 | "DEBUG=1", 716 | "$(inherited)", 717 | ); 718 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 719 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 720 | GCC_WARN_UNDECLARED_SELECTOR = YES; 721 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 722 | GCC_WARN_UNUSED_FUNCTION = YES; 723 | GCC_WARN_UNUSED_VARIABLE = YES; 724 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 725 | MACOSX_DEPLOYMENT_TARGET = 10.9; 726 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 727 | MTL_FAST_MATH = YES; 728 | ONLY_ACTIVE_ARCH = YES; 729 | PRODUCT_NAME = "$(TARGET_NAME)"; 730 | STRIP_INSTALLED_PRODUCT = NO; 731 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 732 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 733 | SWIFT_VERSION = 5.0; 734 | SYMROOT = "${SRCROOT}/../build"; 735 | TVOS_DEPLOYMENT_TARGET = 9.0; 736 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 737 | }; 738 | name = Debug; 739 | }; 740 | ECCA149FFF6BC77B6B41695E2F0185D6 /* Debug */ = { 741 | isa = XCBuildConfiguration; 742 | baseConfigurationReference = CA6998C8276FDD4173BF08ADA61E693C /* Pods-CalendarPicker_Example.debug.xcconfig */; 743 | buildSettings = { 744 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 745 | CODE_SIGN_IDENTITY = ""; 746 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 747 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 748 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 749 | CURRENT_PROJECT_VERSION = 1; 750 | DEFINES_MODULE = YES; 751 | DYLIB_COMPATIBILITY_VERSION = 1; 752 | DYLIB_CURRENT_VERSION = 1; 753 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 754 | INFOPLIST_FILE = "Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-Info.plist"; 755 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 756 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 757 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 758 | MACH_O_TYPE = staticlib; 759 | MACOSX_DEPLOYMENT_TARGET = 10.9; 760 | MODULEMAP_FILE = "Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example.modulemap"; 761 | OTHER_LDFLAGS = ""; 762 | OTHER_LIBTOOLFLAGS = ""; 763 | PODS_ROOT = "$(SRCROOT)"; 764 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 765 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 766 | SDKROOT = iphoneos; 767 | SKIP_INSTALL = YES; 768 | TARGETED_DEVICE_FAMILY = "1,2"; 769 | TVOS_DEPLOYMENT_TARGET = 9.0; 770 | VERSIONING_SYSTEM = "apple-generic"; 771 | VERSION_INFO_PREFIX = ""; 772 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 773 | }; 774 | name = Debug; 775 | }; 776 | /* End XCBuildConfiguration section */ 777 | 778 | /* Begin XCConfigurationList section */ 779 | 152A7F6B4142664544E574EA7A9768DD /* Build configuration list for PBXNativeTarget "CalendarPicker" */ = { 780 | isa = XCConfigurationList; 781 | buildConfigurations = ( 782 | 441BC69F8AF8D13770DC20A8776CD400 /* Debug */, 783 | 89EB3B6F1C0A2AF01FE2F409AE2083EF /* Release */, 784 | ); 785 | defaultConfigurationIsVisible = 0; 786 | defaultConfigurationName = Release; 787 | }; 788 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 789 | isa = XCConfigurationList; 790 | buildConfigurations = ( 791 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 792 | B0087CB4594321EF41619F3181FE120E /* Release */, 793 | ); 794 | defaultConfigurationIsVisible = 0; 795 | defaultConfigurationName = Release; 796 | }; 797 | B2855C1CF01F5C08584AE4969F796418 /* Build configuration list for PBXNativeTarget "Pods-CalendarPicker_Example" */ = { 798 | isa = XCConfigurationList; 799 | buildConfigurations = ( 800 | ECCA149FFF6BC77B6B41695E2F0185D6 /* Debug */, 801 | B83DA53667A9990D1DB9A63FA94D8910 /* Release */, 802 | ); 803 | defaultConfigurationIsVisible = 0; 804 | defaultConfigurationName = Release; 805 | }; 806 | FE8AB306BBA9B16B3019546695DD03EE /* Build configuration list for PBXNativeTarget "Pods-CalendarPicker_Tests" */ = { 807 | isa = XCConfigurationList; 808 | buildConfigurations = ( 809 | 1DAD82BE2AD85E5625733B6D73AC6820 /* Debug */, 810 | 5426CB7FE65A6EEC9D6E76DCED95DB4A /* Release */, 811 | ); 812 | defaultConfigurationIsVisible = 0; 813 | defaultConfigurationName = Release; 814 | }; 815 | /* End XCConfigurationList section */ 816 | }; 817 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 818 | } 819 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CalendarPicker/CalendarPicker-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | $(MARKETING_VERSION) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CalendarPicker/CalendarPicker-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_CalendarPicker : NSObject 3 | @end 4 | @implementation PodsDummy_CalendarPicker 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CalendarPicker/CalendarPicker-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CalendarPicker/CalendarPicker-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double CalendarPickerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char CalendarPickerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CalendarPicker/CalendarPicker.modulemap: -------------------------------------------------------------------------------- 1 | framework module CalendarPicker { 2 | umbrella header "CalendarPicker-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CalendarPicker/CalendarPicker.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## CalendarPicker 5 | 6 | Copyright (c) 2019 pikachu987 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 pikachu987 <pikachu77769@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | CalendarPicker 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CalendarPicker_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CalendarPicker_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/CalendarPicker/CalendarPicker.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/CalendarPicker/CalendarPicker.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_CalendarPicker_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CalendarPicker_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker/CalendarPicker.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "CalendarPicker" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CalendarPicker_Example { 2 | umbrella header "Pods-CalendarPicker_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Example/Pods-CalendarPicker_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker/CalendarPicker.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "CalendarPicker" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CalendarPicker_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CalendarPicker_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_CalendarPicker_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CalendarPicker_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker/CalendarPicker.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "CalendarPicker" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CalendarPicker_Tests { 2 | umbrella header "Pods-CalendarPicker_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CalendarPicker_Tests/Pods-CalendarPicker_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CalendarPicker/CalendarPicker.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "CalendarPicker" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import CalendarPicker 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 pikachu987 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CalendarPicker 2 | 3 | [![CI Status](https://img.shields.io/travis/pikachu987/CalendarPicker.svg?style=flat)](https://travis-ci.org/pikachu987/CalendarPicker) 4 | [![Version](https://img.shields.io/cocoapods/v/CalendarPicker.svg?style=flat)](https://cocoapods.org/pods/CalendarPicker) 5 | [![License](https://img.shields.io/cocoapods/l/CalendarPicker.svg?style=flat)](https://cocoapods.org/pods/CalendarPicker) 6 | [![Platform](https://img.shields.io/cocoapods/p/CalendarPicker.svg?style=flat)](https://cocoapods.org/pods/CalendarPicker) 7 | ![OS](https://img.shields.io/badge/Supported-iOS9%20%7C%20OSX%2010.9-4BC51D.svg?style=flat-square) 8 | [![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat)](https://developer.apple.com/swift/) 9 | 10 | 11 | ## Introduce 12 | 13 | I have added some features in the iOS default DatePicker. 14 | 15 | ## Preview 16 | 17 | 18 | 19 | ## Requirements 20 | 21 | `CalendarPicker` written in Swift 5.0. Compatible with iOS 8.0+ 22 | 23 | ## Installation 24 | 25 | CalendarPicker is available through [CocoaPods](https://cocoapods.org). To install 26 | it, simply add the following line to your Podfile: 27 | 28 | ```ruby 29 | pod 'CalendarPicker' 30 | ``` 31 | 32 | ### Usage 33 | 34 | 35 | ```swift 36 | import CalendarPicker 37 | ``` 38 | 39 | ```swift 40 | let calendarPicker = CalendarPicker() 41 | ``` 42 | 43 | ### Property 44 | 45 | DateFormatType 46 | 47 | ```swift 48 | calendarPicker.dateFormatType = .default 49 | calendarPicker.dateFormatType = .yearMonth 50 | ``` 51 | 52 | Locale 53 | 54 | ```swift 55 | calendarPicker.localeType = .en 56 | calendarPicker.localeType = .ko 57 | calendarPicker.localeType = .jp 58 | calendarPicker.localeType = .zh 59 | calendarPicker.localeType = .default 60 | ``` 61 | 62 | Date 63 | 64 | ```swift 65 | calendarPicker.date = Date() 66 | print(calendarPicker.selectedDateComponent) 67 | ``` 68 | 69 | minimum & maximum 70 | 71 | ```swift 72 | calendarPicker.minimumDate = Date() 73 | calendarPicker.maximumDate = Date() 74 | ``` 75 | 76 | Show Week 77 | 78 | ```swift 79 | calendarPicker.isShowWeek = true 80 | ``` 81 | 82 | Colors 83 | 84 | ```swift 85 | calendarPicker.textColor = .black 86 | calendarPicker.saturdayColor = .blue 87 | calendarPicker.sundayColor = .red 88 | ``` 89 | 90 | Font 91 | 92 | ```swift 93 | calendarPicker.font = UIFont.systemFont(ofSize: 23) 94 | ``` 95 | 96 | ### Function 97 | 98 | ```swift 99 | calendarPicker.update(animated: true) 100 | calendarPicker.setDate(Date(), animated: true) 101 | ``` 102 | 103 | ### Delegate 104 | 105 | ```swift 106 | 107 | class ViewController: UIViewController{ 108 | override func viewDidLoad() { 109 | super.viewDidLoad() 110 | 111 | let calendarPicker = CalendarPicker() 112 | calendarPicker.delegate = self 113 | } 114 | } 115 | 116 | // MARK: CalendarPickerDelegate 117 | extension ViewController: CalendarPickerDelegate { 118 | func calendarPickerSelectDate(_ dateCompontnt: DateComponent) { 119 | 120 | } 121 | } 122 | 123 | ``` 124 | 125 | ## Author 126 | 127 | pikachu987, pikachu77769@gmail.com 128 | 129 | ## License 130 | 131 | CalendarPicker is available under the MIT license. See the LICENSE file for more info. 132 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /img/preview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pikachu987/CalendarPicker/4398b52c5ef2f60bc831f2b6cc94b90572d753b1/img/preview.gif --------------------------------------------------------------------------------