diff --git a/Sources/LiveFader/LiveFader.swift b/Sources/LiveFader/LiveFader.swift index 4f24853..75779c8 100644 --- a/Sources/LiveFader/LiveFader.swift +++ b/Sources/LiveFader/LiveFader.swift @@ -11,7 +11,7 @@ import UIKit /// A UIControl subclass for creating customisable horizontal or vertical faders. open class LiveFaderView: UIControl { /// Fader's control direction of the fader. - public enum ControlDirection { + public enum ControlDirection: Int, Codable { /// Horizontal fader. case horizontal /// Vertical fader. @@ -19,7 +19,7 @@ open class LiveFaderView: UIControl { } /// Fader's contol style. - public enum ControlStyle { + public enum ControlStyle: Int, Codable { /// Starts from bottom on vertical faders, starts from left end on horizontal faders. case fromBottom /// Starts from middle.