From 18062ba32c40c7b87e5a801dd6b8fcc95ccc7f1a Mon Sep 17 00:00:00 2001 From: Aamir Nazir Date: Sat, 16 Dec 2017 22:18:03 +0500 Subject: [PATCH] DropDown: Exposed properties for Objective-C users --- DropDown/src/DropDown.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DropDown/src/DropDown.swift b/DropDown/src/DropDown.swift index d37d070..6c7c3ea 100644 --- a/DropDown/src/DropDown.swift +++ b/DropDown/src/DropDown.swift @@ -45,7 +45,7 @@ public final class DropDown: UIView { //TODO: handle iOS 7 landscape mode /// The dismiss mode for a drop down. - public enum DismissMode { + @objc public enum DismissMode: Int { /// A tap outside the drop down is required to dismiss. case onTap @@ -59,7 +59,7 @@ public final class DropDown: UIView { } /// The direction where the drop down will show from the `anchorView`. - public enum Direction { + @objc public enum Direction: Int { /// The drop down will show below the anchor view when possible, otherwise above if there is more place than below. case any