diff --git a/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerCell.swift b/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerCell.swift index b0b64cd..f503a30 100644 --- a/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerCell.swift +++ b/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerCell.swift @@ -14,14 +14,14 @@ class CalendarDateRangePickerCell: UICollectionViewCell { private let highlightedColor = UIColor(white: 0.9, alpha: 1.0) private let disabledColor = UIColor.lightGray - var selectedColor: UIColor! + @objc var selectedColor: UIColor! - var date: Date? - var selectedView: UIView? - var halfBackgroundView: UIView? - var roundHighlightView: UIView? + @objc var date: Date? + @objc var selectedView: UIView? + @objc var halfBackgroundView: UIView? + @objc var roundHighlightView: UIView? - var label: UILabel! + @objc var label: UILabel! override init(frame: CGRect) { super.init(frame: frame) @@ -33,7 +33,7 @@ class CalendarDateRangePickerCell: UICollectionViewCell { initLabel() } - func initLabel() { + @objc func initLabel() { label = UILabel(frame: frame) label.center = CGPoint(x: frame.size.width / 2, y: frame.size.height / 2) label.font = UIFont(name: "HelveticaNeue", size: 15.0) @@ -42,7 +42,7 @@ class CalendarDateRangePickerCell: UICollectionViewCell { self.addSubview(label) } - func reset() { + @objc func reset() { self.backgroundColor = UIColor.clear label.textColor = defaultTextColor label.backgroundColor = UIColor.clear @@ -60,7 +60,7 @@ class CalendarDateRangePickerCell: UICollectionViewCell { } } - func select() { + @objc func select() { let width = self.frame.size.width let height = self.frame.size.height selectedView = UIView(frame: CGRect(x: (width - height) / 2, y: 0, width: height, height: height)) @@ -72,7 +72,7 @@ class CalendarDateRangePickerCell: UICollectionViewCell { label.textColor = UIColor.white } - func highlightRight() { + @objc func highlightRight() { // This is used instead of highlight() when we need to highlight cell with a rounded edge on the left let width = self.frame.size.width let height = self.frame.size.height @@ -84,7 +84,7 @@ class CalendarDateRangePickerCell: UICollectionViewCell { addRoundHighlightView() } - func highlightLeft() { + @objc func highlightLeft() { // This is used instead of highlight() when we need to highlight the cell with a rounded edge on the right let width = self.frame.size.width let height = self.frame.size.height @@ -96,7 +96,7 @@ class CalendarDateRangePickerCell: UICollectionViewCell { addRoundHighlightView() } - func addRoundHighlightView() { + @objc func addRoundHighlightView() { let width = self.frame.size.width let height = self.frame.size.height roundHighlightView = UIView(frame: CGRect(x: (width - height) / 2, y: 0, width: height, height: height)) @@ -106,11 +106,11 @@ class CalendarDateRangePickerCell: UICollectionViewCell { self.sendSubview(toBack: roundHighlightView!) } - func highlight() { + @objc func highlight() { self.backgroundColor = highlightedColor } - func disable() { + @objc func disable() { label.textColor = disabledColor } diff --git a/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerHeaderView.swift b/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerHeaderView.swift index c5d3b4e..1f9a5c5 100644 --- a/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerHeaderView.swift +++ b/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerHeaderView.swift @@ -10,7 +10,7 @@ import UIKit class CalendarDateRangePickerHeaderView: UICollectionReusableView { - var label: UILabel! + @objc var label: UILabel! override init(frame: CGRect) { super.init(frame: frame) @@ -22,7 +22,7 @@ class CalendarDateRangePickerHeaderView: UICollectionReusableView { initLabel() } - func initLabel() { + @objc func initLabel() { label = UILabel(frame: frame) label.center = CGPoint(x: frame.size.width / 2, y: frame.size.height / 2) label.font = UIFont(name: "HelveticaNeue-Light", size: 17.0) diff --git a/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerViewController.swift b/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerViewController.swift index 3626fdc..dba24eb 100644 --- a/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerViewController.swift +++ b/CalendarDateRangePickerViewController/Classes/CalendarDateRangePickerViewController.swift @@ -8,30 +8,31 @@ import UIKit +@objc public protocol CalendarDateRangePickerViewControllerDelegate { - func didCancelPickingDateRange() - func didPickDateRange(startDate: Date!, endDate: Date!) + @objc func didCancelPickingDateRange() + @objc func didPickDateRange(startDate: Date!, endDate: Date!) } public class CalendarDateRangePickerViewController: UICollectionViewController { - let cellReuseIdentifier = "CalendarDateRangePickerCell" - let headerReuseIdentifier = "CalendarDateRangePickerHeaderView" + @objc let cellReuseIdentifier = "CalendarDateRangePickerCell" + @objc let headerReuseIdentifier = "CalendarDateRangePickerHeaderView" - public var delegate: CalendarDateRangePickerViewControllerDelegate! + @objc public var delegate: CalendarDateRangePickerViewControllerDelegate! - let itemsPerRow = 7 - let itemHeight: CGFloat = 40 - let collectionViewInsets = UIEdgeInsets(top: 0, left: 25, bottom: 0, right: 25) + @objc let itemsPerRow = 7 + @objc let itemHeight: CGFloat = 40 + @objc let collectionViewInsets = UIEdgeInsets(top: 0, left: 25, bottom: 0, right: 25) - public var minimumDate: Date! - public var maximumDate: Date! + @objc public var minimumDate: Date! + @objc public var maximumDate: Date! - public var selectedStartDate: Date? - public var selectedEndDate: Date? + @objc public var selectedStartDate: Date? + @objc public var selectedEndDate: Date? - public var selectedColor = UIColor(red: 66/255.0, green: 150/255.0, blue: 240/255.0, alpha: 1.0) - public var titleText = "Select Dates" + @objc public var selectedColor = UIColor(red: 66/255.0, green: 150/255.0, blue: 240/255.0, alpha: 1.0) + @objc public var titleText = "Select Dates" override public func viewDidLoad() { super.viewDidLoad() @@ -58,11 +59,11 @@ public class CalendarDateRangePickerViewController: UICollectionViewController { self.navigationItem.rightBarButtonItem?.isEnabled = selectedStartDate != nil && selectedEndDate != nil } - func didTapCancel() { + @objc func didTapCancel() { delegate.didCancelPickingDateRange() } - func didTapDone() { + @objc func didTapDone() { if selectedStartDate == nil || selectedEndDate == nil { return } @@ -197,23 +198,23 @@ extension CalendarDateRangePickerViewController { // Helper functions - func getFirstDate() -> Date { + @objc func getFirstDate() -> Date { var components = Calendar.current.dateComponents([.month, .year], from: minimumDate) components.day = 1 return Calendar.current.date(from: components)! } - func getFirstDateForSection(section: Int) -> Date { + @objc func getFirstDateForSection(section: Int) -> Date { return Calendar.current.date(byAdding: .month, value: section, to: getFirstDate())! } - func getMonthLabel(date: Date) -> String { + @objc func getMonthLabel(date: Date) -> String { let dateFormatter = DateFormatter() dateFormatter.dateFormat = "MMMM yyyy" return dateFormatter.string(from: date) } - func getWeekdayLabel(weekday: Int) -> String { + @objc func getWeekdayLabel(weekday: Int) -> String { var components = DateComponents() components.calendar = Calendar.current components.weekday = weekday @@ -226,25 +227,25 @@ extension CalendarDateRangePickerViewController { return dateFormatter.string(from: date!) } - func getWeekday(date: Date) -> Int { + @objc func getWeekday(date: Date) -> Int { return Calendar.current.dateComponents([.weekday], from: date).weekday! } - func getNumberOfDaysInMonth(date: Date) -> Int { + @objc func getNumberOfDaysInMonth(date: Date) -> Int { return Calendar.current.range(of: .day, in: .month, for: date)!.count } - func getDate(dayOfMonth: Int, section: Int) -> Date { + @objc func getDate(dayOfMonth: Int, section: Int) -> Date { var components = Calendar.current.dateComponents([.month, .year], from: getFirstDateForSection(section: section)) components.day = dayOfMonth return Calendar.current.date(from: components)! } - func areSameDay(dateA: Date, dateB: Date) -> Bool { + @objc func areSameDay(dateA: Date, dateB: Date) -> Bool { return Calendar.current.compare(dateA, to: dateB, toGranularity: .day) == ComparisonResult.orderedSame } - func isBefore(dateA: Date, dateB: Date) -> Bool { + @objc func isBefore(dateA: Date, dateB: Date) -> Bool { return Calendar.current.compare(dateA, to: dateB, toGranularity: .day) == ComparisonResult.orderedAscending } diff --git a/Example/CalendarDateRangePickerViewController.xcodeproj/project.pbxproj b/Example/CalendarDateRangePickerViewController.xcodeproj/project.pbxproj index 2525d1c..03c6773 100644 --- a/Example/CalendarDateRangePickerViewController.xcodeproj/project.pbxproj +++ b/Example/CalendarDateRangePickerViewController.xcodeproj/project.pbxproj @@ -517,8 +517,7 @@ MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "com.miraan.CalendarDateRangePickerViewController-Example"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; }; name = Debug; }; @@ -533,8 +532,7 @@ MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "com.miraan.CalendarDateRangePickerViewController-Example"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; }; name = Release; }; @@ -554,8 +552,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; }; name = Debug; }; @@ -571,8 +568,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; }; name = Release; }; diff --git a/Example/CalendarDateRangePickerViewController/ViewController.swift b/Example/CalendarDateRangePickerViewController/ViewController.swift index b2b3933..f7bd13f 100644 --- a/Example/CalendarDateRangePickerViewController/ViewController.swift +++ b/Example/CalendarDateRangePickerViewController/ViewController.swift @@ -30,11 +30,11 @@ class ViewController: UIViewController { extension ViewController : CalendarDateRangePickerViewControllerDelegate { - func didCancelPickingDateRange() { + @objc func didCancelPickingDateRange() { self.navigationController?.dismiss(animated: true, completion: nil) } - func didPickDateRange(startDate: Date!, endDate: Date!) { + @objc func didPickDateRange(startDate: Date!, endDate: Date!) { let dateFormatter = DateFormatter() dateFormatter.dateFormat = "EEEE, MMM d, yyyy" label.text = dateFormatter.string(from: startDate) + " to " + dateFormatter.string(from: endDate) diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index 9655cf0..6f09dcf 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -32,7 +32,7 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 0148BAA8FDBE646D63A642E62711E291 /* Pods-CalendarDateRangePickerViewController_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-CalendarDateRangePickerViewController_Example.modulemap"; sourceTree = ""; }; + 0148BAA8FDBE646D63A642E62711E291 /* Pods-CalendarDateRangePickerViewController_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-CalendarDateRangePickerViewController_Example.modulemap"; sourceTree = ""; }; 0A49805888B49A3A37F661EB44FC04FA /* CalendarDateRangePickerViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CalendarDateRangePickerViewController.swift; sourceTree = ""; }; 0B149CD46FB0FF6E7364E973FADA68D5 /* Pods-CalendarDateRangePickerViewController_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CalendarDateRangePickerViewController_Example-acknowledgements.markdown"; sourceTree = ""; }; 1673A5479D44E2FC82AE481FCBFFE742 /* CalendarDateRangePickerViewController-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CalendarDateRangePickerViewController-umbrella.h"; sourceTree = ""; }; @@ -41,22 +41,22 @@ 3F7AB8A77F735D9B114F2BC4DED68270 /* Pods-CalendarDateRangePickerViewController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarDateRangePickerViewController_Tests.debug.xcconfig"; sourceTree = ""; }; 3FE25D3424A69F085B96399278B5035E /* Pods-CalendarDateRangePickerViewController_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CalendarDateRangePickerViewController_Tests-umbrella.h"; sourceTree = ""; }; 4740F54E33287DBB42E7F91759B2C268 /* Pods-CalendarDateRangePickerViewController_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CalendarDateRangePickerViewController_Example-umbrella.h"; sourceTree = ""; }; - 56A93C888A18F1A479C489856C4033BE /* CalendarDateRangePickerViewController.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = CalendarDateRangePickerViewController.modulemap; sourceTree = ""; }; + 56A93C888A18F1A479C489856C4033BE /* CalendarDateRangePickerViewController.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = CalendarDateRangePickerViewController.modulemap; sourceTree = ""; }; 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 715A77DD2FAF7EB2E3141C961C905971 /* Pods-CalendarDateRangePickerViewController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarDateRangePickerViewController_Example.release.xcconfig"; sourceTree = ""; }; 7812E19A58DDDF1DA9A161C2DA9B79E4 /* Pods-CalendarDateRangePickerViewController_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CalendarDateRangePickerViewController_Example-acknowledgements.plist"; sourceTree = ""; }; 81B0504AFABE1A3AD56E87DA8BFCA5C1 /* Pods-CalendarDateRangePickerViewController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarDateRangePickerViewController_Example.debug.xcconfig"; sourceTree = ""; }; - 83C670EA4CF3822AD954DA801FBF3132 /* Pods_CalendarDateRangePickerViewController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_CalendarDateRangePickerViewController_Tests.framework; path = "Pods-CalendarDateRangePickerViewController_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 83C670EA4CF3822AD954DA801FBF3132 /* Pods_CalendarDateRangePickerViewController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CalendarDateRangePickerViewController_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 8D75C979600E8A5FBF5F42F5CC5FA9DA /* CalendarDateRangePickerHeaderView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CalendarDateRangePickerHeaderView.swift; sourceTree = ""; }; - 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 9DA2125F305F25D93B32CBB177390C16 /* CalendarDateRangePickerViewController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = CalendarDateRangePickerViewController.framework; path = CalendarDateRangePickerViewController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 9DA2125F305F25D93B32CBB177390C16 /* CalendarDateRangePickerViewController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CalendarDateRangePickerViewController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; A3897269F90EB5F8D49BBFC6F2474DF3 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; A67FE854740E4F36D86A94599E52ABE6 /* Pods-CalendarDateRangePickerViewController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CalendarDateRangePickerViewController_Tests.release.xcconfig"; sourceTree = ""; }; A8178AD51DBB17E31CD43FF9A46689C9 /* Pods-CalendarDateRangePickerViewController_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CalendarDateRangePickerViewController_Tests-dummy.m"; sourceTree = ""; }; A84C1CB842AC8B9771C7ECD192D480B0 /* Pods-CalendarDateRangePickerViewController_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CalendarDateRangePickerViewController_Example-dummy.m"; sourceTree = ""; }; A96ABA7F3EC8F5D41F82CF610954DA7C /* Pods-CalendarDateRangePickerViewController_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CalendarDateRangePickerViewController_Example-frameworks.sh"; sourceTree = ""; }; B2F126D011F5C4835D5E7EA8050FCAA1 /* Pods-CalendarDateRangePickerViewController_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CalendarDateRangePickerViewController_Tests-frameworks.sh"; sourceTree = ""; }; - BC88B657ED483FF70FB465C9035D9B5D /* Pods_CalendarDateRangePickerViewController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_CalendarDateRangePickerViewController_Example.framework; path = "Pods-CalendarDateRangePickerViewController_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + BC88B657ED483FF70FB465C9035D9B5D /* Pods_CalendarDateRangePickerViewController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CalendarDateRangePickerViewController_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; C0B516091F6B38006FCD868D3E17FD38 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DFCD66755972151678CC738E9327BBD2 /* Pods-CalendarDateRangePickerViewController_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CalendarDateRangePickerViewController_Tests-acknowledgements.markdown"; sourceTree = ""; }; E36FA64337EC90F33E32EDB2DDD18C97 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; @@ -65,7 +65,7 @@ F32B3971F72639D1F18CE5E5D1CBB999 /* CalendarDateRangePickerViewController-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CalendarDateRangePickerViewController-dummy.m"; sourceTree = ""; }; F63988E25133FD68B56845D05B8C834A /* Pods-CalendarDateRangePickerViewController_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CalendarDateRangePickerViewController_Tests-resources.sh"; sourceTree = ""; }; FB3659AFE2022112C87D34DD540FD0F6 /* CalendarDateRangePickerViewController-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CalendarDateRangePickerViewController-prefix.pch"; sourceTree = ""; }; - FBF491DFA46BA5963C0D4239F06D5EB0 /* Pods-CalendarDateRangePickerViewController_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-CalendarDateRangePickerViewController_Tests.modulemap"; sourceTree = ""; }; + FBF491DFA46BA5963C0D4239F06D5EB0 /* Pods-CalendarDateRangePickerViewController_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-CalendarDateRangePickerViewController_Tests.modulemap"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -173,7 +173,6 @@ 8D75C979600E8A5FBF5F42F5CC5FA9DA /* CalendarDateRangePickerHeaderView.swift */, 0A49805888B49A3A37F661EB44FC04FA /* CalendarDateRangePickerViewController.swift */, ); - name = Classes; path = Classes; sourceTree = ""; }; @@ -182,7 +181,6 @@ children = ( 8477E267C7DCBA3A3DE1A3C65D5AFF7E /* Classes */, ); - name = CalendarDateRangePickerViewController; path = CalendarDateRangePickerViewController; sourceTree = ""; }; @@ -319,7 +317,15 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0830; - LastUpgradeCheck = 0700; + LastUpgradeCheck = 0900; + TargetAttributes = { + 77B9D0C34AFEC78F982D3D8A11A84330 = { + LastSwiftMigration = 0900; + }; + 8F6EA6E60876BF509C484037E487507E = { + LastSwiftMigration = 0900; + }; + }; }; buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; compatibilityVersion = "Xcode 3.2"; @@ -412,7 +418,7 @@ SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -465,7 +471,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -473,14 +481,20 @@ CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGNING_REQUIRED = NO; COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; GCC_PREPROCESSOR_DEFINITIONS = ( "POD_CONFIGURATION_RELEASE=1", "$(inherited)", @@ -494,6 +508,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.3; PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; STRIP_INSTALLED_PRODUCT = NO; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SYMROOT = "${SRCROOT}/../build"; VALIDATE_PRODUCT = YES; }; @@ -530,7 +545,7 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -600,7 +615,7 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -617,7 +632,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -625,15 +642,21 @@ CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGNING_REQUIRED = NO; COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "POD_CONFIGURATION_DEBUG=1", @@ -683,7 +706,7 @@ SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = "";