我已将本地 Swift 包添加到工作区中。它们驻留在项目子文件夹中,并作为 git 子模块连接到不同的 git 存储库。一切都运行良好(项目能够构建,包能够解析,并且我可以在同一工作区中编辑包)。
将 Xcode 更新到 13.0 后,项目开始无法构建,Missing package product每个本地包依赖项均出现多个错误。删除派生数据、重置包、清理构建文件夹和重新启动 Xcode 都没有帮助。
UITableView显示没有节页脚的多个节,节之间有额外的空间。Xcode 的视图调试器显示它不是视图,而只是一个空白区域。
就我而言,这种行为是不受欢迎的。
添加 1.0/0.0 高度页脚并没有帮助。更改表视图的style.
这是示例代码:
import UIKit
final class ViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
tableView.separatorColor = .yellow
}
override func numberOfSections(in tableView: UITableView) -> Int {
return 3
}
override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let header = UIView()
header.backgroundColor = .green
return header
}
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 20.0
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) …Run Code Online (Sandbox Code Playgroud)