Skip to content

Commit

Permalink
Merge pull request #7 from zSoNz/delegate-fix
Browse files Browse the repository at this point in the history
Making delegate accessible.
  • Loading branch information
BeauNouvelle authored Feb 19, 2022
2 parents 30264ae + f286c26 commit db576e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DateTextField/DateTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import UIKit
import Foundation

protocol DateTextFieldDelegate: AnyObject {
public protocol DateTextFieldDelegate: AnyObject {
func dateDidChange(dateTextField: DateTextField)
}

Expand Down Expand Up @@ -40,7 +40,7 @@ public class DateTextField: UITextField {
/// The symbol you wish to use to separate each date segment. e.g. "01 - 01 - 2012", "01 / 03 / 2019"
/// **Default:** `" / "`
public var separator: String = " / "
weak var customDelegate: DateTextFieldDelegate?
public weak var customDelegate: DateTextFieldDelegate?

/// Parses the `text` property into a `Date` and returns that date if successful.
/// If unsuccessful, the value will be nil and you'll need to show this in your UI.
Expand Down

0 comments on commit db576e2

Please sign in to comment.