Skip to content

Commit

Permalink
adds new checkmark placeholder (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaining authored May 29, 2018
1 parent 5985f4f commit 30d5d58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Static/Row.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public struct Row: Hashable, Equatable {
/// Checkmark
case checkmark

/// Checkmark Placeholder.
/// Allows spacing to continue to work when switching back & forth between checked states.
case checkmarkPlaceholder

/// Info button. Handles selection.
case detailButton(Selection)

Expand All @@ -49,6 +53,8 @@ public struct Row: Hashable, Equatable {
case .view(let view): return view
case .switchToggle(let value, let valueChange):
return SwitchAccessory(initialValue: value, valueChange: valueChange)
case .checkmarkPlaceholder:
return UIView(frame: CGRect(x: 0, y: 0, width: 24, height: 24))
default: return nil
}
}
Expand Down

0 comments on commit 30d5d58

Please sign in to comment.