From 1b891bc9f865e7a7f43623101a91d65f5b13dd94 Mon Sep 17 00:00:00 2001 From: mshrwtnb Date: Fri, 24 Apr 2020 21:07:36 +0900 Subject: [PATCH] Added public init --- ALRT/ALRT.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ALRT/ALRT.swift b/ALRT/ALRT.swift index f53966a..cf1cf06 100644 --- a/ALRT/ALRT.swift +++ b/ALRT/ALRT.swift @@ -11,6 +11,16 @@ public class ALRT { public var tintColor: UIColor? public var okTitle: String? public var cancelTitle: String? + + public init( + tintColor: UIColor?, + okTitle: String?, + cancelTitle: String? + ) { + self.tintColor = tintColor + self.okTitle = okTitle + self.cancelTitle = cancelTitle + } } /**