LIFEInputField
@interface LIFEInputField : NSObject <NSCopying>
Facilitates appearance & behavior configuration of input fields in the bug reporter form.
-
Default constructor - parameter: attributeName The attribute name. If the given attributeName is equal to a custom attribute value set via
Buglife.setStringValue(_:forAttribute:)
, then that value will be the default value for this field in the bug reporter UI.Declaration
Objective-C
- (nonnull instancetype)initWithAttributeName:(nonnull NSString *)attributeName;
Swift
init(attributeName: String)
Parameters
attributeName
The attribute name. If the given attributeName is equal to a custom attribute value set via
Buglife.setStringValue(_:forAttribute:)
, then that value will be the default value for this field in the bug reporter UI. -
The bug report attribute name for this input field.
If the attribute name matches an attribute programmatically set using Buglife.setStringValue(_:, forAttribute:), then the value from that call will become the default value in the input field.
See
Buglife.setStringValue(_:, forAttribute:)Declaration
Objective-C
@property (readonly, copy, nonatomic, nonnull) NSString *attributeName;
Swift
var attributeName: String { get }
-
The user-facing label for the input field. The default value returned is the attribute name.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, null_resettable) NSString *title;
Swift
var title: String! { get set }
-
Setting this property to YES specifies that this is a required field, i.e. users must enter a non-blank value before they can submit a bug report. The default value is NO.
Declaration
Objective-C
@property (getter=isRequired, assign, readwrite, nonatomic) BOOL required;
Swift
var isRequired: Bool { get set }
-
Returns YES if this field is visible to the user.
Declaration
Objective-C
@property (getter=isVisible, assign, readwrite, nonatomic) BOOL visible;
Swift
var isVisible: Bool { get set }