Swift UI Special training 10 View commonality

Source: Internet
Author: User

In the view, let's take a look at the contents of the view:

1. Implementation of the view: the base class of the view is UIView

2. Mode of view: Size fill mode, that is, when the size exceeds the value we set to take what is appropriate for the screen fill.

3.Tag: Mark Serial number


Behavior of the View:

There are interactions and drawings, interaction is the user's actions, you can choose whether to use interactive and multi-touch control.


The drawing includes transparency, visibility, clear image content, truncated child view boundaries, and sub-view auto dimensions.


Trying to look: alpha is transparent and takes values from 0 to 1:


Proxy method to modify the appearance of the view: Modify all the methods using the appearance, if you need to modify a fixed Appearancewhencontaindein method.

View colors and pictures: Colors are tintcolor properties, or you can use uiimage pictures.


Swift UI Special training 10 View commonality

Related Article

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.