macOS 11.4

Xcode 12.5.1

1.新建工程,创建一个swiftui文件

 

2.创建后有些画布是在下面显示的

 

 

3.先来看下效果图

 

4.

CardImageView.swift中

Image("Shan")

.resizable()

.aspectRatio(CGSize(width:1.5, height:1.0),contentMode: .fit)

.cornerRadius(10)

.padding(10)

.shadow(radius:5)

VideoView.swift中

HStack(alignment:.top) {

Image("Shu")

.resizable()

.frame(width:80, height:80)

VStack(alignment:.leading) {

Text("How to build an RPG")

Text("Placeholder")

.font(.subheadline)

.fontWeight(/*@START_MENU_TOKEN@*/.bold/*@END_MENU_TOKEN@*/)

.foregroundColor(Color.green)

.multilineTextAlignment(.leading)

}

Spacer()

}

ContentView.swift中

VStack {

CardImageView()

List{

VideoView()

VideoView()

}

}

 

 

 

最新文章

  1. UI进阶 跳转系统设置相关界面的方法
  2. 自顶而下设计FPGA
  3. openoffice
  4. 记录maven java.lang.String cannot be cast to XX error
  5. DIV相关的操作总结
  6. cmd+lcx+nc+sc提权工具总结
  7. Octopus系列之SQLite3常用命令
  8. Spring MVC mapping[From Spring MVC Beginner's Guide]
  9. PowerDesigner(三)-企业架构模型(转)
  10. Redis使用(1)---安装
  11. 学习rollup.js模块文件打包
  12. UOJ14 UER #1 DZY Loves Graph(最小生成树+并查集)
  13. Python 回溯算法
  14. 337A
  15. VBO最佳实践
  16. BZOJ4559: [JLoi2016]成绩比较(dp 拉格朗日插值)
  17. PM2来部署nodejs服务器永久开启
  18. orcal数据库基本操作
  19. es6(10)--Set,Map(2)
  20. [poj 1947] Rebuilding Roads 树形DP

热门文章

  1. CentOS7虚拟机配置git仓库(配置虚拟机,网络,git仓库,windows端git访问)
  2. 题解 P6355 [COCI2007-2008#3] DEJAVU
  3. 基于FPGA的SATA3.0主机控制器IP
  4. ubuntu 输入法IBUS 输入不成功问题
  5. LAPM概述及配置
  6. xmind下载安装破解版激活教程思维导图软件获取
  7. [ PHP 内核与扩展开发系列] 内存管理 —— 引用计数
  8. 关于C++ find
  9. <四>理解空间配置器allocator, 优化STL 中的Vector
  10. Python基础之数据库:5、创建表的完整语法、MySQL数据类型