Swift UI special training 10 view commonalities, swiftui

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.