addSubview
addSubview is a method in the UIKit framework for iOS development. It is used to add a new subview to the receiver as a subview of the current view. A view can contain other views, which are called subviews. The addSubview method allows developers to place and arrange these subviews within a parent view. When a view is added as a subview, it becomes part of the view hierarchy. This hierarchy defines the order in which views are drawn on the screen. Views added later appear on top of views added earlier.
The addSubview method is fundamental for constructing the user interface in iOS applications. Developers use it
When a subview is added, it inherits certain properties from its superview, such as coordinate system transformations.