A protocol that ensures that views fit without obstruction within the Swift Playgrounds user interface.
- Xcode 10.2+Beta
- Swift Playgrounds 2.0+
- Playground Support
This protocol provides
live, a layout guide set to the safe area. The safe area is the part of the live view that isn't covered by any Swift Playgrounds user interface elements like the Run button. You use this property to constrain the bounds of your content view inside the bounds of the safe area, which depend on how you set the
Live key for the current page. When this key is set to
NO, the safe area is exactly the same as the live view area. When the key is set to
YES, the safe area can be smaller than the live view area.