From e6cdacf815c11fa009a5563a1c6f7d992c9d74d1 Mon Sep 17 00:00:00 2001 From: "Alex.k" Date: Wed, 10 Feb 2016 09:29:57 +0300 Subject: [PATCH] added public words --- CircleMenuLib/CircleMenu.swift | 10 +++++----- .../CircleMenuButton/CircleMenuButton.swift | 8 ++++---- .../CircleMenuLoader/CircleMenuLoader.swift | 12 ++++++------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CircleMenuLib/CircleMenu.swift b/CircleMenuLib/CircleMenu.swift index fdfbd1a..97e1e3e 100755 --- a/CircleMenuLib/CircleMenu.swift +++ b/CircleMenuLib/CircleMenu.swift @@ -34,7 +34,7 @@ public func Init(value: Type, @noescape block: (object: Type) -> Void) -> // MARK: Protocol -@objc protocol CircleMenuDelegate { +@objc public protocol CircleMenuDelegate { // don't change button.tag optional func circleMenu(circleMenu: CircleMenu, willDisplay button: CircleMenuButton, atIndex: Int) @@ -65,7 +65,7 @@ public class CircleMenu: UIButton { private var customSelectedIconView: UIImageView! // MARK: life cicle - init(frame: CGRect, + public init(frame: CGRect, normalIcon: String?, selectedIcon: String?, buttonsCount: Int = 3, @@ -141,8 +141,8 @@ public class CircleMenu: UIButton { let iconView = Init(UIImageView(image: image)) { $0.translatesAutoresizingMaskIntoConstraints = false - $0.contentMode = .Center - $0.userInteractionEnabled = false + $0.contentMode = .Center + $0.userInteractionEnabled = false } addSubview(iconView) @@ -261,7 +261,7 @@ public class CircleMenu: UIButton { let step: Float = 360.0 / Float(self.buttonsCount) for index in 0..