MessageCenterTheme

public struct MessageCenterTheme

Model object representing a custom theme to be applied to the default message center.

To customize the message center theme:

MessageCenterView(
    controller: messageCenterController
)
.messageCenterTheme(theme)
  • The tint color of the “pull to refresh” control

    Declaration

    Swift

    public var refreshTintColor: Color?
  • The dark mode tint color of the “pull to refresh” control

    Declaration

    Swift

    public var refreshTintColorDark: Color?
  • Whether icons are enabled. Defaults to NO.

    Declaration

    Swift

    public var iconsEnabled: Bool
  • An optional placeholder image to use when icons haven’t fully loaded.

    Declaration

    Swift

    public var placeholderIcon: Image?
  • The font to use for message cell titles.

    Declaration

    Swift

    public var cellTitleFont: Font?
  • The font to use for message cell dates.

    Declaration

    Swift

    public var cellDateFont: Font?
  • The regular color for message cells

    Declaration

    Swift

    public var cellColor: Color?
  • The dark mode color for message cells

    Declaration

    Swift

    public var cellColorDark: Color?
  • The regular color for message cell titles.

    Declaration

    Swift

    public var cellTitleColor: Color?
  • The dark mode color for message cell titles.

    Declaration

    Swift

    public var cellTitleColorDark: Color?
  • The regular color for message cell dates.

    Declaration

    Swift

    public var cellDateColor: Color?
  • The dark mode color for message cell dates.

    Declaration

    Swift

    public var cellDateColorDark: Color?
  • The message cell separator style.

    Declaration

    Swift

    public var cellSeparatorStyle: SeparatorStyle?
  • The message cell separator color.

    Declaration

    Swift

    public var cellSeparatorColor: Color?
  • The dark mode message cell separator color.

    Declaration

    Swift

    public var cellSeparatorColorDark: Color?
  • The message cell tint color.

    Declaration

    Swift

    public var cellTintColor: Color?
  • The dark mode message cell tint color.

    Declaration

    Swift

    public var cellTintColorDark: Color?
  • The background color for the unread indicator.

    Declaration

    Swift

    public var unreadIndicatorColor: Color?
  • The dark mode background color for the unread indicator.

    Declaration

    Swift

    public var unreadIndicatorColorDark: Color?
  • The title color for the “Select All” button.

    Declaration

    Swift

    public var selectAllButtonTitleColor: Color?
  • The dark mode title color for the “Select All” button.

    Declaration

    Swift

    public var selectAllButtonTitleColorDark: Color?
  • The title color for the “Delete” button.

    Declaration

    Swift

    public var deleteButtonTitleColor: Color?
  • The dark mode title color for the “Delete” button.

    Declaration

    Swift

    public var deleteButtonTitleColorDark: Color?
  • The title color for the “Mark Read” button.

    Declaration

    Swift

    public var markAsReadButtonTitleColor: Color?
  • The dark mode title color for the “Mark Read” button.

    Declaration

    Swift

    public var markAsReadButtonTitleColorDark: Color?
  • Whether the delete message button from the message view is enabled. Defaults to NO.

    Declaration

    Swift

    public var hideDeleteButton: Bool?
  • The title color for the “Edit” button.

    Declaration

    Swift

    public var editButtonTitleColor: Color?
  • The dark mode title color for the “Edit” button.

    Declaration

    Swift

    public var editButtonTitleColorDark: Color?
  • The title color for the “Cancel” button.

    Declaration

    Swift

    public var cancelButtonTitleColor: Color?
  • The dark mode title color for the “Cancel” button.

    Declaration

    Swift

    public var cancelButtonTitleColorDark: Color?
  • The title color for the “Done” button.

    Declaration

    Swift

    public var backButtonColor: Color?
  • The dark mode title color for the “Done” button.

    Declaration

    Swift

    public var backButtonColorDark: Color?
  • The navigation bar title

    Declaration

    Swift

    public var navigationBarTitle: String?
  • The background of the message list.

    Declaration

    Swift

    public var messageListBackgroundColor: Color?
  • The dark mode background of the message list.

    Declaration

    Swift

    public var messageListBackgroundColorDark: Color?
  • The background of the message list container.

    Declaration

    Swift

    public var messageListContainerBackgroundColor: Color?
  • The dark mode background of the message list container.

    Declaration

    Swift

    public var messageListContainerBackgroundColorDark: Color?
  • The background of the message view.

    Declaration

    Swift

    public var messageViewBackgroundColor: Color?
  • The dark mode background of the message view.

    Declaration

    Swift

    public var messageViewBackgroundColorDark: Color?
  • The background of the message view container.

    Declaration

    Swift

    public var messageViewContainerBackgroundColor: Color?
  • The dark mode background of the message view container.

    Declaration

    Swift

    public var messageViewContainerBackgroundColorDark: Color?
  • Loads a message center theme from a plist file

    Declaration

    Swift

    public static func fromPlist(_ plist: String) throws -> MessageCenterTheme

    Parameters

    plist

    The name of the plist in the bundle