SearchingTheme

public struct SearchingTheme : SearchingThemeProtocol

SearchingTheme provides all styling elements required by the search components. It can be used as is, or custolmised for particular needs.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Colors shared between different app components.

    Declaration

    Swift

    public var colors: ColorsThemeProtocol
  • Images shared between different app components.

    Declaration

    Swift

    public var commonImages: ImagesThemeProtocol
  • Provides a library of components that can be styled using predefined or custom styles.

    Declaration

    Swift

    public var components: StylableComponents
  • Default theme for search components. Can be used as a starting point for easy UI customization.

    Declaration

    Swift

    public static var `default`: SearchingTheme { get }
  • Theme that only provides the default search UI style.

    Declaration

    Swift

    public static func `default`(withTheme theme: ThemeProtocol) -> SearchingTheme

    Parameters

    theme

    Theme that contains common UI styles that can be shared between other app components.

    Return Value

    An instance of SearchingTheme.

  • Fonts shared between different app components.

    Declaration

    Swift

    public var fonts: FontsThemeProtocol
  • Initializes a search components theme with the common UI theme, search-only images and search-only attributes.

    • theme: Theme that contains common UI styles that can be shared between other app components.
    • searchingImages: Provider of images only used in search component.
    • searchBarAttributes: Additional attributes of the search bar.
    • searchingResultsCellStyle: Defines the Search Results Cell appearance.

    Declaration

    Swift

    public init(
        withTheme theme: ThemeProtocol,
        searchingImages: SearchingImagesThemeProtocol,
        searchBarAttributes: SearchBarAttributes,
        searchingResultsCellStyle: SearchResultsCellStyling? = nil
    )
  • Additional attributes of the search bar view.

    Declaration

    Swift

    public var searchBarAttributes: SearchBarAttributes
  • Images used in the search components.

    Declaration

    Swift

    public var searchingImages: SearchingImagesThemeProtocol
  • Style to customize the appearance of a Search Results cell

    Declaration

    Swift

    public var searchResultsCellStyle: SearchResultsCellStyling?