Skip to content

Adjusting Views

Simone Martorelli edited this page Feb 8, 2021 · 2 revisions

Adding and Removing Views

View Controllers are loaded into the SubViewControllerManagerViewController which acts as stack container managing what gets loaded at any particular time.

Each view to be loaded has dimensions of 620 * 520.

View Controllers

  1. each view controller will map to a unique class with code for performing the transitions
  2. a unique storyboard id is used with the SubViewControllerManagerViewController

In the event that a phase value is detected from the application property list (com.ibm.enrollment.plist) when the application is loaded, it will display the corresponding view. For readability, these id's are stored in a struct.

Segues / Transitions

  1. a custom segue connection between the source controller (Primary Registration Child VC) and the destination (Secondary Registration Child VC)
  2. each segue has a unique identifier which is provided to the CrossfadeStoryBoardSegue.swift class to control how the segue transition is animated

In the example image above, a segue is created by dragging from the source view (the button highlighted by a blue square) to the destination view (the area highlighted by the blue triangle). From the resulting Manual Segue contextual menu, select Custom.

You can use the performSegue(withIdentifier..) function to then perform the transition:

Clone this wiki locally