我正在 SwiftUI 中开发一个应用程序。我有一个水平滚动视图,当用户点击它时显示滚动条。由于这个应用程序更多地针对老年用户,因此我想不断显示滚动条。我在 Apple 文档中找不到有关如何启用此功能的任何内容。有一个名为showIndicators的属性,默认情况下为 true,并通过点击启用滚动条,但不会持续显示滚动条。这是我的 ScrollView 的简单代码片段:
var body: some View {
ScrollView(.horizontal) {
HStack(spacing: 4) {
// other stuff in the scroll view
}
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试按照本指南将项目的 Angular 版本从 8 更新到 11: https: //update.angular.io/?l=3& v=8.0-11.0 。到目前为止,更新到 v9 已经有效,但是在运行时ng update @angular/core@10 @angular/cli@10我现在收到一条错误消息,并且我无法在网上找到解决该问题的帖子。
The installed local Angular CLI version is older than the latest stable version.\nInstalling a temporary version to perform the update.\n\xe2\x9c\x94 Package successfully installed.\nAn unhandled exception occurred: Cannot locate bin for temporary package: @angular/cli.\nSee "/private/var/folders/qy/0lhcj3516gb2hmdfcfj8jpf40000gn/T/ng-G8l2Tv/angular-errors.log" for further details.\nRun Code Online (Sandbox Code Playgroud)\n日志显示以下内容
\n[error] Error: Cannot locate bin for temporary package: @angular/cli.\n at Object.runTempPackageBin (/usr/local/lib/node_modules/@angular/cli/utilities/install-package.js:116:15)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\n at async UpdateCommand.validateAndRun (/usr/local/lib/node_modules/@angular/cli/models/command.js:136:22)\n at async Object.runCommand …Run Code Online (Sandbox Code Playgroud)