From 741da8329ff20f5cefbe4a512cb6ec967f573b94 Mon Sep 17 00:00:00 2001 From: Jonathan Samudio Date: Wed, 27 Jun 2018 15:48:49 -0400 Subject: [PATCH 1/2] Updated presenter delegate to objc type. --- .../Classes/VelarPresenter/VelarPresenter.swift | 2 +- .../VelarPresenter/VelarPresenterDelegate.swift | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Velar/Velar/Classes/VelarPresenter/VelarPresenter.swift b/Velar/Velar/Classes/VelarPresenter/VelarPresenter.swift index 3c9fb73..4fd2b9e 100644 --- a/Velar/Velar/Classes/VelarPresenter/VelarPresenter.swift +++ b/Velar/Velar/Classes/VelarPresenter/VelarPresenter.swift @@ -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 { diff --git a/Velar/Velar/Classes/VelarPresenter/VelarPresenterDelegate.swift b/Velar/Velar/Classes/VelarPresenter/VelarPresenterDelegate.swift index baa145b..0254e68 100644 --- a/Velar/Velar/Classes/VelarPresenter/VelarPresenterDelegate.swift +++ b/Velar/Velar/Classes/VelarPresenter/VelarPresenterDelegate.swift @@ -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() @@ -21,15 +21,3 @@ public protocol VelarPresenterDelegate { func didDismiss() } - -extension VelarPresenterDelegate { - - func willPresent() { } - - func willDismiss() { } - - func didPresent() { } - - func didDismiss() { } - -} From 8bc8774554394363af40e96f5837342127817dad Mon Sep 17 00:00:00 2001 From: Jonathan Samudio Date: Wed, 27 Jun 2018 15:49:34 -0400 Subject: [PATCH 2/2] Bumped version number. --- Velar.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Velar.podspec b/Velar.podspec index 4ee912b..3434ac6 100644 --- a/Velar.podspec +++ b/Velar.podspec @@ -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