LIFEAppearance

@protocol LIFEAppearance <NSObject>

To customize the visual appearance of Buglife views & view controllers, get an instance of an object conforming to this protocol using the Buglife.appearance property, then use any of that object’s corresponding LIFEAppearance properties.

Example:

  // Objective-C
  [Buglife sharedBuglife].appearance.tintColor = [UIColor redColor];
  // Swift
  Buglife.shared().apperance.tintColor = .red
  • The color of interactive elements, such as navigation bar buttons.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable) UIColor *tintColor;

    Swift

    var tintColor: UnsafeMutablePointer
  • The background color of navigation bars & toolbars.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable) UIColor *barTintColor;

    Swift

    var barTintColor: UnsafeMutablePointer
  • Display attributes for the bar’s title text.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, null_resettable)
        NSDictionary<NSString *, id> *titleTextAttributes;
  • The status bar style, if & when the status bar is visible.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIStatusBarStyle statusBarStyle;

    Swift

    var statusBarStyle: Int32 { get set }