ViSearchResultsView
open class ViSearchResultsView: UIView
present search results in either horizontal scrollview or vertical grid
The layout is vertical and as follow: headerView - collectionView - footerView
headerView generally contains the widget title such as You May Also Like
footerView generally contains the Power by Visenze image
-
Undocumented
Declaration
Swift
open class ViSearchResultsView: UIView
-
right padding for this view
Declaration
Swift
public var paddingRight: CGFloat = 0.0
-
collection view layout for search results
Declaration
Swift
public var collectionViewLayout: UICollectionViewFlowLayout = UICollectionViewFlowLayout()
-
collection view to contain results
Declaration
Swift
public var collectionView: UICollectionView?
-
generic message view. This can be used to display a generic error message (e.g. due to network errors/ API errors) it can also be used to displayed a message such as
No Search Results found
the message view can be attached to collection view header to display the errorDeclaration
Swift
public var msgView: UIView = UIView()
-
show/hide message view
Declaration
Swift
public var showMsgView : Bool = false
-
container for header
Declaration
Swift
public var headerViewContainer: UIView = UIView()
-
container for footer
Declaration
Swift
public var footerViewContainer: UIView = UIView()
-
header height. Set to 0 to hide the header
Declaration
Swift
public var headerHeight : CGFloat = 0
-
Footer view. Set to 0 to hide
Declaration
Swift
public var footerHeight : CGFloat = 0
-
Undocumented
Declaration
Swift
open class ViSearchResultsView: UIView
-
Undocumented
Declaration
Swift
open class ViSearchResultsView: UIView
-
layout views vertically: header, collectionview, footer
Declaration
Swift
override open func layoutSubviews()
-
Remove all subviews in headerViewContainer and put the new headerView inside
Parameter
Parameter headerView: new headerViewDeclaration
Swift
public func setHeader(_ headerView: UIView)
Parameters
headerView
new headerView
-
Remove all subviews in footerViewContainer and put the new footerView inside
Parameter
Parameter footerView: new footerViewDeclaration
Swift
public func setFooter(_ footerView: UIView)
Parameters
footerView
new footerView