Swift

Building the log in interface

To be able to log in, you will need to add three elements to the screen:

  • A UIButton to log in Alice
  • A UIButton to log in Bob
  • A UILabel to show the connection status.

Open ViewController.swift and add it programmatically by replacing the entire file content with the following:

Build and Run

Run the project again (Cmd + R) to launch it in the simulator.

Interface