Theme

@available(iOS 9.0, *)
public struct Theme : Equatable
extension Theme: ObjectiveCBridgeable

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 MediaEditViewController. 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 that should be issued in the appearanceProxyConfigurationClosure which is part of the Configuration or manually after a CameraViewController or a PhotoEditViewController has been initialized and before it becomes part of the view hierarchy.

Properties

  • 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. If nil the default system’s tintColor is used.

    Declaration

    Swift

    public var tintColor: UIColor?
  • The color of the rotation snap guides. If nil the default value of SnapGuideView.guideColor is used.

    Declaration

    Swift

    public var rotationSnapGuideColor: UIColor?
  • The color of the position snap guides. If nil the default value of SnapGuideView.guideColor is used.

    Declaration

    Swift

    public var positionSnapGuideColor: UIColor?
  • The color of the sprite’s content bounding box when positional snapping occurs. If nil the default value of SnapGuideView.guideColor is used.

    Declaration

    Swift

    public var boundingBoxSnapGuideColor: 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

Initializers