FUISearchBar
public class FUISearchBar : UISearchBar
Fiori style UISearchBar.
Developer can add a FUIBarcodeScanner
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
.
Attention
The delegate object with type UISearchBarDelegate
is declared as a weak reference. So on deallocation it will be automatically set to nil. To keep it alive as expected, developer should retain the delegate object during its whole execution scope.
-
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 theFUIBarcodeScanner
in functionsearchBarBookmarkButtonClicked
of the delegate.Declaration
Swift
public var isBarcodeScannerEnabled: Bool { get set }
-
The
FUIBarcodeScanner
instance for thisFUISearchBar
. It is nil whenisBarcodeScannerEnabled
isfalse
.Declaration
Swift
public var barcodeScanner: FUIBarcodeScanner?
-
The customized placeholder text.
Declaration
Swift
public var placeholderText: String? { get set }
-
The placehoder text font. Default is Fiori style subheadline.
Declaration
Swift
public var placeholderTextFont: UIFont
-
The placeholderTextColor. Default is #8E8E8E.
Declaration
Swift
public var placeholderTextColor: UIColor