FUIWhatsNewDetailPageController

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, imageViewSize will not take effect.

    Declaration

    Swift

    open var isImageExpanded: Bool { get set }
  • Set image size. The default value is 173x173.

    Declaration

    Swift

    open var imageViewSize: CGSize { get set }
  • Define the imageView in the page view mode layout.

    Declaration

    Swift

    public let imageView: FUIImageView
  • Define the headline text field in the page view mode layout.

    Declaration

    Swift

    public let titleLabel: FUILabel
  • Define the detail description text field in the page view mode layout.

    Declaration

    Swift

    public let descriptionTextView: UITextView
  • Undocumented

    Declaration

    Swift

    required public init?(coder: NSCoder)
  • Returns a FUIWhatsNewDetailPageController instance.

    Declaration

    Swift

    convenience public init()