ViFindSimilarViewController

open class ViFindSimilarViewController: ViGridSearchViewController

Find Similar widget. Search results are displayed in a grid

  • Configuration for query image

    Declaration

    Swift

    public var queryImageConfig = ViImageConfig()
  • show/hide query product

    Declaration

    Swift

    open var showQueryProduct : Bool = false
  • Query product from previous screen e.g. user taps on Similar button on a product in the search results

    Declaration

    Swift

    open var queryProduct: ViProduct? = nil
  • generate the query image config from product card config, scale down by scale factor scale should generally be less than 1. Default number is in ViTheme.default_query_product_image_scale

    Declaration

    Swift

    open func generateQueryImageConfig(scale: CGFloat) -> ViImageConfig
  • layout for header that contains query product and filter button

    Declaration

    Swift

    open override var headerLayout : Layout?
  • since we show the Power by ViSenze image below the query product, it is not necessary to show again in the footer if query product is not available, then the Power by ViSenze image will appear in footer

    Declaration

    Swift

    open override var footerSize : CGSize
  • Undocumented

    Declaration

    Swift

    open class ViFindSimilarViewController: ViGridSearchViewController
  • call ViSearch API and refresh the views

    Declaration

    Swift

    open override func refreshData()