Swift UI special training 10 view commonalities, swiftui
When talking about views, let's take a look at the view content:
1. View implementation: The base class of the view is UIView.
2. View Mode: The size filling Mode, which is used to fill the screen when the size exceeds the value we set.
3. Tag: Tag number
View behavior:
There are mainly interactions and plotting. Interactions refer to some user operations. You can select whether to use interaction and multi-touch.
Plotting includes: transparency, visibility, clear image content, truncation of subview boundary, and automatic size of subview.
Try appearance: Alpha is transparent and the value ranges from 0 to 1:
Proxy Method for modifying the view appearance: modify all the methods for using appearance. If you need to modify a fixed method for using appearanceWhenContaindeIn.
View color and image: The color is a tintColor attribute. You can also use a UIImage image.