File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ public protocol SwitchCellDelegate: class {
3737/// A `UITableViewCell` subclass that shows a `UISwitch` as the `accessoryView`.
3838open class SwitchCell : UITableViewCell , Configurable {
3939
40+ #if os(iOS)
41+
4042 /// A `UISwitch` as the `accessoryView`. Not available on tvOS.
4143 @available ( tvOS, unavailable, message: " switchControl is not available on tvOS. " )
4244 public private( set) lazy var switchControl : UISwitch = {
@@ -45,6 +47,8 @@ open class SwitchCell: UITableViewCell, Configurable {
4547 return control
4648 } ( )
4749
50+ #endif
51+
4852 /// The switch cell's delegate object, which should conform to `SwitchCellDelegate`. Not available on tvOS.
4953 @available ( tvOS, unavailable, message: " SwitchCellDelegate is not available on tvOS. " )
5054 open weak var delegate : SwitchCellDelegate ?
You can’t perform that action at this time.
0 commit comments