SCPToggle
Objective-C
@interface SCPToggle : NSObject
Swift
class Toggle : NSObject
Contains information about a Toggle to display as part of a form
-
Represents the toggle’s title, the larger style text
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *title;Swift
var title: String? { get } -
Represents the toggle’s description, the smaller style text
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *stripeDescription;Swift
var stripeDescription: String? { get } -
Default state of the toggle when first being displayed
Declaration
Objective-C
@property (nonatomic, readonly) SCPToggleValue defaultValue;Swift
var defaultValue: ToggleValue { get } -
Unavailable
Use
SCPToggleBuilder.Declaration
Objective-C
- (nonnull instancetype)init; -
Unavailable
Use
SCPToggleBuilder.Declaration
Objective-C
+ (nonnull instancetype)new;