Search Header Logo

Oley

Authored by Stone Y

Computers

5th Grade

Used 3+ times

Oley
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

在 SwiftUI 中,以下哪种视图用于将视图组件垂直排列?

ZStack

HStack

VStack

shaStackViewpe

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

使用 .frame(width: 50) 设置视图的宽度为多少?

25

50

100

200

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Text("Hello").foregroundColor(.red) 的作用是?

显示“Hello”并设置背景色为红色

显示“Hello”并设置文字颜色为红色

隐藏“Hello”

显示“Hello”并设置字体加粗

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

在 SwiftUI 中,Spacer() 的作用是?

水平或垂直分隔视图

添加图片

添加颜色

增加按钮功能

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

如果要在 SwiftUI 中垂直排列内容并覆盖整个安全区域,应使用哪个视图?

 Text

ZStack

VStack

HStack

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

在 SwiftUI 中,哪个修饰符可以为视图添加默认的 16 点内边距?

.padding()

.frame()

.font()

.bold()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

VStack{}.padding(50) 的作用是什么?

为所有视图设置固定大小

为 VStack 添加 50 点的内边距

将背景色设置为红色

设置 VStack 的字体

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?