FUISearchBar

public class FUISearchBar: UISearchBar

Fiori style UISearchBar.

Developer can add a FUISearchBarcodeScanner to this FUISearchBar by setting the isBarcodeScannerEnabled property of the FUISearchBar to true. A barcode scanner icon will be displayed at the bookmark icon location of the search bar.

A barcode scanner view will be displayed when the barcode scanner icon is tapped.

Please refer to FUISearchController about how to use this FUISearchBar.

  • If this is true, there will be a barcode scanner icon at the bookmark location of the search bar. The default is false. When barcode scanner is enabled, developer need to set the delegate for this FUISearchBar to display the FUISearchBarcodeScanner in function searchBarBookmarkButtonClicked of the delegate.

    Declaration

    Swift

    public var isBarcodeScannerEnabled: Bool = false
  • The FUISearchBarcodeScanner instance for this FUISearchBar. It is nil when isBarcodeScannerEnabled is false.

    Declaration

    Swift

    public var barcodeScanner: FUISearchBarcodeScanner?
  • The customized placeholder text.

    Declaration

    Swift

    public var placeholderText: String? = nil
  • The placehoder text font. Default is Fiori style subheadline.

    Declaration

    Swift

    public var placeholderTextFont: UIFont = UIFont.preferredFont(forTextStyle: .subheadline)
  • The placeholderTextColor. Default is #8E8E8E.

    Declaration

    Swift

    public var placeholderTextColor: UIColor = UIColor.preferredFioriColor(forStyle: .primary3)