HCLThemeConfigure

Declaration

Swift

 

 

public struct HCLThemeConfigure

extension HCLThemeConfigure: Equatable

 

Overview

The theme configuration object that can be used to customize the UI for the first/Home search screen.

Example

Swift

 

 

let theme = HCLThemeConfigure(defaultFont: UIFont(name: "HelveticaNeue", size: 14.0),

                             titleMainFont: UIFont(name: "HelveticaNeue", size: 20.0),

                             titleSecondaryFont: UIFont(name: "HelveticaNeue-Medium", size: 16.0),

                             searchResultTotalFont: UIFont(name: "HelveticaNeue-Medium", size: 14.0),

                             searchResultTitleFont: UIFont(name: "HelveticaNeue", size: 16.0),...

let manager = HCLManager.shared

manager.initialize(apiKey: <YOUR_API_KEY>, theme: theme)

 

Discussion

All properties of the theme configuration are optional.

Assign theme configuration while initializing HCLManager and before adding search screens into your app. If values are not provided/set during initialization of HCLManager, then default values are loaded into the UI.

Generic operator

==(_:_:)

The ==(_:_:) generic operator returns a boolean value indicating whether the corresponding components of two tuples are equal.

Declaration

Swift

 

 

public static func == (lhs: HCLThemeConfigure, rhs: HCLThemeConfigure) -> Bool

 

Parameters

lhs

A tuple of Equatable elements.

rhs

Another tuple of elements of the same type as lhs.

Return

A boolean value to indicate if the two tuples are equal.

Availability

HealthCare Locator 1.0 and higher