Back to Firefox Ios

``ComponentLibrary/ContextualHintView``

BrowserKit/Sources/ComponentLibrary/Documentation.docc/General Components/ContextualHintView.md

139.0880 B
Original Source

ComponentLibrary/ContextualHintView

The contextual hint view is a popover to present more context to the user.

Overview

ContextualHintView is a subclass of UIView. That view is basically the content that will be enclosed in a popover which includes an arrow. You should configure the contextual hint view arrow direction, title, accessibility identifier, and click actions through its view model ContextualHintViewModel. The popover size should be set with preferredContentSize normally in the viewDidLayoutSubviews instance method, as well as setting the popoverPresentationController delegate and source view.

Illustration

This image is illustrative only. For precise examples of iOS implementation, please run the SampleApplication.

Topics

View Model

  • ContextualHintViewModel