Skip to content

Commit

Permalink
Make delegate property public.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbirnholz committed Oct 30, 2019
1 parent f59ab0a commit 4853e27
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion JBCalendarDatePicker.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ s.summary = "A replacement for UIDatePicker made for Catalyst."
s.requires_arc = true

# 2
s.version = "0.2.2"
s.version = "0.2.3"

# 3
s.license = { :type => "MIT", :file => "LICENSE" }
Expand Down
8 changes: 6 additions & 2 deletions JBCalendarDatePicker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
54947D232369F42300986ACA /* JBCalendarDateCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = JBCalendarDateCell.xib; sourceTree = "<group>"; };
54947D242369F42300986ACA /* JBCalendarViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = JBCalendarViewController.xib; sourceTree = "<group>"; };
54947D252369F42300986ACA /* JBDatePickerViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = JBDatePickerViewController.xib; sourceTree = "<group>"; };
54947D30236A13B900986ACA /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
54947D31236A13FC00986ACA /* JBCalendarDatePicker.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; path = JBCalendarDatePicker.podspec; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -51,6 +53,8 @@
54947CDB2369E52300986ACA = {
isa = PBXGroup;
children = (
54947D30236A13B900986ACA /* README.md */,
54947D31236A13FC00986ACA /* JBCalendarDatePicker.podspec */,
54947CE72369E52300986ACA /* JBCalendarDatePicker */,
54947CE62369E52300986ACA /* Products */,
54947D292369F4AA00986ACA /* Frameworks */,
Expand Down Expand Up @@ -325,7 +329,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.2.2;
MARKETING_VERSION = 0.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.josh.birnholz.JBCalendarDatePicker;
PRODUCT_NAME = JBCalendarDatePicker;
SKIP_INSTALL = YES;
Expand All @@ -352,7 +356,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.2.2;
MARKETING_VERSION = 0.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.josh.birnholz.JBCalendarDatePicker;
PRODUCT_NAME = JBCalendarDatePicker;
SKIP_INSTALL = YES;
Expand Down
2 changes: 1 addition & 1 deletion JBCalendarDatePicker/JBCalendarViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public protocol JBCalendarViewControllerDelegate: class {

public class JBCalendarViewController: UIViewController, JBDatePicker {

weak var delegate: JBCalendarViewControllerDelegate?
public weak var delegate: JBCalendarViewControllerDelegate?

@IBOutlet private weak var monthLabel: UILabel!
@IBOutlet private weak var collectionView: UICollectionView!
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,12 @@ The view controller tries to present itself as a popover automatically, so be su
present(calendarPicker, animated: true, completion: nil)
}
```
There is also a `JBCalendarViewControllerDelegate` protocol.

```Swift
public protocol JBCalendarViewControllerDelegate: class {
func calendarViewControllerDateChanged(_ calendarViewController: JBCalendarViewController)
func calendarViewControllerWillDismiss(_ calendarViewController: JBCalendarViewController)
func calendarViewControllerDidDismiss(_ calendarViewController: JBCalendarViewController)
}
```

0 comments on commit 4853e27

Please sign in to comment.