AXCaptionViewProtocol
protocol AXCaptionViewProtocol : NSObjectProtocol
AXCaptionViewProtocol
-
Whether or not the
CaptionViewshould animate caption info changes - usingConstants.frameAnimDurationas the animation duration.Declaration
Swift
var animateCaptionInfoChanges: Bool { get set } -
The
AXPhotosViewControllerwill call this method when a new photo is ready to have its information displayed. The implementation should update thecaptionViewwith the attributed parameters.Declaration
Swift
func applyCaptionInfo(attributedTitle: NSAttributedString?, attributedDescription: NSAttributedString?, attributedCredit: NSAttributedString?)Parameters
attributedTitleThe attributed title of the new photo.
attributedDescriptionThe attributed description of the new photo.
attributedCreditThe attributed credit of the new photo.
-
The
AXPhotosViewControlleruses this method to correctly size the caption view for a constrained width.Declaration
Swift
func sizeThatFits(_ size: CGSize) -> CGSizeParameters
sizeThe constrained size. Use the width of this value to layout subviews.
Return Value
A size that fits all subviews inside a constrained width.
View on GitHub
AXCaptionViewProtocol Protocol Reference