Skip to content

Commit

Permalink
Merge pull request #7 from prolificinteractive/chore/fix_presenter_de…
Browse files Browse the repository at this point in the history
…legate

[Chore] Fix Presenter Delegate
  • Loading branch information
jgsamudio authored Jun 27, 2018
2 parents b73707e + 8bc8774 commit eaa685c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Velar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Velar'
s.version = '0.1.6'
s.version = '0.1.7'
s.summary = 'A custom alert view presenter.'

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Velar/Velar/Classes/VelarPresenter/VelarPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class VelarPresenter {

// MARK: - Public Properties

public var delegate: VelarPresenterDelegate?
public weak var delegate: VelarPresenterDelegate?

/// Dismiss label threshold.
public var dismissThreshold: CGFloat = 100 {
Expand Down
14 changes: 1 addition & 13 deletions Velar/Velar/Classes/VelarPresenter/VelarPresenterDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018 Jonathan Samudio. All rights reserved.
//

public protocol VelarPresenterDelegate {
@objc public protocol VelarPresenterDelegate: class {

/// Notifies delegate that velar presenter will present.
func willPresent()
Expand All @@ -21,15 +21,3 @@ public protocol VelarPresenterDelegate {
func didDismiss()

}

extension VelarPresenterDelegate {

func willPresent() { }

func willDismiss() { }

func didPresent() { }

func didDismiss() { }

}

0 comments on commit eaa685c

Please sign in to comment.