FUIWhatsNewDetailPageController
@MainActor
open class FUIWhatsNewDetailPageController : UIViewController
Page style controller to be used in FUIWhatsNewViewController.
Components:
- imageView
- titleLabel
- descriptionTextView
Usage
let pageController = FUIWhatsNewDetailPageController()
pageController.imageView.image = UIImage(named: "cat")
pageController.imageViewSize = CGSize(width: 66, height: 66)
pageController.titleLabel.text = "Title text"
pageController.descriptionTextView.text = "description text"
// enable image only mode in which image takes entire space and title and description become hidden.
pageController.isImageExpanded = true
-
A boolean value indicates if image view is expanded to take the whole space. If set to true,
imageViewSizewill not take effect.Declaration
Swift
@MainActor open var isImageExpanded: Bool { get set } -
Set image size. The default value is 173x173.
Declaration
Swift
@MainActor open var imageViewSize: CGSize { get set } -
Define the imageView in the page view mode layout.
Declaration
Swift
@MainActor public let imageView: FUIImageView -
Define the headline text field in the page view mode layout.
Declaration
Swift
@MainActor public let titleLabel: FUILabel -
Define the detail description text field in the page view mode layout.
Declaration
Swift
@MainActor public let descriptionTextView: UITextView -
Undocumented
Declaration
Swift
@MainActor required public init?(coder: NSCoder) -
Returns a
FUIWhatsNewDetailPageControllerinstance.Declaration
Swift
@MainActor convenience public init()