Skip to content

Commit

Permalink
Make controls decodable
Browse files Browse the repository at this point in the history
  • Loading branch information
cemolcay committed Jul 3, 2021
1 parent 11f0f33 commit 28e35c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/LiveFader/LiveFader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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.
case vertical
}

/// 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.
Expand Down

0 comments on commit 28e35c1

Please sign in to comment.