Instance Property


A view for hosting layered content on top of the image view.


var overlayContentView: UIView { get }


Use this view to host content that you want layered on top of the image view. This view is managed by the image view itself and is automatically sized to fill the image view's frame rectangle. Add your subviews and use layout constraints to position them within the view. When the adjustsImageWhenAncestorFocused property is true, the overlay view receives the same floating effects as the image view when it is focused.

The view in this property clips its subviews to its bounds rectangle by default, but you can change that behavior using the clipsToBounds property.