Swift UI special training 21 Web browser

Source: Internet
Author: User

The Web browser is different from the previous webview, our web browser does not require the user to enter the preceding HTTP, and can realize the automatic layout, this word is a summary of the previous words. To create a new project, and then drag a text label, let's look at some of the tools in the lower right corner, the first one being the alignment constraint:


The second one is the pin constraint, which aligns up and down:



The third one is to clear the constraints and clear the Set constraints:


We set a PIN constraint below and click Add:



To run a look, we find that the text box is already constrained:


View Textlabel's Dimension editor to see that its height is 30 fixed:



Let's drag a webview down below, the height from the top cannot be less than 30, add the constraint:


The main content of this statement is to be bound.



Swift UI special training 21 Web browser

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.