How to cancel the default border of SwiftUI List (tutorial includes source code)

Actual demand

How to cancel the default border of SwiftUI List

Value and harvest of this article

After reading this article, you will be able to make the following interface

Screenshot 2020-09-21 4.47.36 in the afternoon.

Screenshot 2020-09-21 PM 4.48.04.png

Skills you will master after reading this article

  • Master the basic configuration of list
  • Set list effect
  • Master Identifiable

Basic knowledge

Identifiable

A type of type whose instances hold the value of an entity with a stable identity.

protocol Identifiable

Overview

Use the Identifiable protocol to provide a stable concept of identity for classes or value types. For example, you can define a User type whose id attribute is stable between the application and the application's database storage. id Even if other data fields (such as username) change, you can also use this attribute to identify a specific user.

Identifiable does not specify the duration and scope of the identity. The identity can be any of the following:

Guaranteed to be always unique (for example, UUID).

Permanently unique in each environment࿰

Guess you like

Origin blog.csdn.net/iCloudEnd/article/details/108713984