A view expresses a single item on the user interface. It could be a shape like a rectangle, a control item such as a button, an input text field, or an image. A view is a defined specific area on the screen which can be configured to respond to touch events, or it can be used for enriching the user experience.
Monday Hero names rectangles and ovals on the design as Views. However, it's also possible to convert views into components like buttons or create Custom Views to group elements on the page like below:
Automatically Detected Views
On any design, rectangles and ovals are automatically detected as Views on Monday Hero. It's possible to use them as Views or convert them into components like buttons or create Custom Views to group them.
As can be seen below, the Follow button has designed with a blue rectangle and text. Monday Hero automatically detected that the blue rectangle/background is a View and the text is a Label.
The code will be generated like below and constraints are defined in the Storyboard file.
importUIKitclassProfilePageViewController:UIViewController {// MARK: - Properties@IBOutletprivateweakvar rectangleView: UIView!overridefuncviewDidLoad() { super.viewDidLoad()setupViews()setupLayout() }}extensionProfilePageViewController {privatefuncsetupViews() { rectangleView.layer.cornerRadius =6 rectangleView.layer.masksToBounds =true rectangleView.backgroundColor = UIColor.cloudBlue }privatefuncsetupLayout() { //Constraints are defined in Storyboard file. }}