StudyIntroCollectionViewController

open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate

A collection view controller that renders a logo image and a title at the top, a square-ish section of horizontally swipeable content in the center, and a Join Study button at the bottom.

You can use StudyIntro.storyboard provided with the framework but you must add it to your app yourself. Customization is done via configuration, which you can either do manually in code or – much better – by using a JSON file loaded by the StudyIntroConfiguration class.

  • The title shown at the top.

    Declaration

    Swift

    open var topTitle: String?
  • Name of the image file shown at the very top.

    Declaration

    Swift

    open var topImageName = "logo_institute"
  • The configuration object to use to… configure the instance.

    Declaration

    Swift

    open var config: StudyIntroConfiguration?
  • The study intro items to show

    Declaration

    Swift

    open var items: [StudyIntroItem]?
  • Block executed when the user taps the Join Study button. You usually want to start consenting when this is done.

    Declaration

    Swift

    open var onJoinStudy: ((StudyIntroCollectionViewController) -> Void)?
  • If set to true (the default) will hide any navigation bar when the receiver is the top view controller

    Declaration

    Swift

    open var hidesNavigationBar = true
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Load the instance from the given storyboard. This is the preferred way to instantiate the intro view controller.

    Declaration

    Swift

    open class func fromStoryboard(named storyboardName: String) throws -> StudyIntroCollectionViewController
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Undocumented

    Declaration

    Swift

    open class StudyIntroCollectionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate
  • Returns the URL to the bundled blank consent PDF, by default named «Consent.pdf»

    Declaration

    Swift

    open class func bundledConsentPDFURL() -> URL?