Configuring our glance controller using templates
Our next step is to set up our glance interface controller to use our newly created GlanceInterfaceController
class that will be used to display information related to our chosen product item from the shopping list, which we will use later on to set up Outlets within this class.
Since glances are template-based, which basically means that you don't have full control over their appearance, you will notice that the interface is split into upper and lower layout group sections. Perform the following steps:
Select the
Interface.storyboard
file from the project navigation window.Next, select Glance Interface Controller and click on the Show the Identity Inspector button.
Then, from the Class drop-down menu, select the GlanceInterfaceController class that we just created to use as our main class:
Next, click on the Upper layout group and select the Image template highlighted by the A icon reference.
Next, click on the Lower layout group and choose...