* Appends `view` to the list of this view's `subviews`.
(view: View)
| 156 | * Appends `view` to the list of this view's `subviews`. |
| 157 | */ |
| 158 | addSubview(view: View) { |
| 159 | if (this.subviews.includes(view)) { |
| 160 | return; |
| 161 | } |
| 162 | this.subviews.push(view); |
| 163 | view.superview = this; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Breaks the subview-superview relationship between `view` and this view, if |
no test coverage detected