Theme

@available(iOS 9.0, *)
public struct Theme

A Theme defines the overall color scheme of all UI elements of the SDK and allows for convenient customization at a single place. The defined colors are applied to most UI elements via UIAppearance proxies during the initialization of a CameraViewController or a PhotoEditViewController. Additionally, these colors and other properties of UI elements can be customized and overriden by modifying its properties directly, by using the configuration closures defined by a Configuration, or by using custom calls to UIAppearance proxies after a CameraViewController or a PhotoEditViewController has been initialized.

  • The background color used for the views in the CameraViewController and for the background of the canvas in the PhotoEditViewController.

    Declaration

    Swift

    public var backgroundColor: UIColor
  • The background color of the menu and accesory controls above the menu in the PhotoEditViewController.

    Declaration

    Swift

    public var menuBackgroundColor: UIColor
  • The background color of the toolbar that hosts the title of the active tool, the discard, and the apply button in the PhotoEditViewController.

    Declaration

    Swift

    public var toolbarBackgroundColor: UIColor
  • The primary tint color used for texts, buttons, icons, and control elements with static background colors in the PhotoEditViewController.

    Declaration

    Swift

    public var primaryColor: UIColor
  • The highlight tint color, e.g., used for buttons in the CameraViewController, the outline of selected menu items, the sliders’ thumb outline and filled track, and selected fonts in the PhotoEditViewController. Defaults to nil where the system’s tintColor is used.

    Declaration

    Swift

    public var tintColor: UIColor?
  • The dark theme.

    Declaration

    Swift

    public static let dark: Theme
  • The light theme.

    Declaration

    Swift

    public static let light: Theme
  • A theme that switches dynamically between the light and the dark theme based on the active UITraitCollection.userInterfaceStyle.

    Declaration

    Swift

    @available(iOS 13.0, *)
    public static let dynamic: Theme