简体   繁体   English

Xcode SwiftUI 如何滚动预览画布?

[英]Xcode SwiftUI how to scroll the Preview Canvas?

I have started working with SwiftUI Demo.我已经开始使用 SwiftUI Demo。

But I am not able to scroll the Preview canvas in Xcode.但我无法在 Xcode 中滚动预览画布。

Yes there is button for zooming like - 100 + .是的,有像 - 100 + 这样的缩放按钮。

I have seen a video where person is scrolling this canvas during the tutorial我看过一个视频,其中有人在教程期间滚动此画布

is there any option in Xcode to enable scrolling in preview canvas ? Xcode 中是否有任何选项可以在预览画布中启用滚动?

在此处输入图片说明

Seems to be a trackpad vs mouse wheel issue.似乎是触控板与鼠标滚轮的问题。 Try scrolling with the trackpad, it should work until Apple gets this bug patched.尝试使用触控板滚动,它应该可以工作,直到 Apple 修复此错误。 Haven't tried with a bluetooth trackpad, might be worth looking into.没有尝试过蓝牙触控板,可能值得研究。

On my MacBook Pro (Big Sur, 11.2.3), I place two fingers on the trackpad and move them up and down to scroll between previews in the canvas of Xcode 12.5 beta 3.在我的 MacBook Pro(Big Sur,11.2.3)上,我将两根手指放在触控板上并上下移动以在 Xcode 12.5 beta 3 画布中的预览之间滚动。

Hope that helps.希望有帮助。 I'm new to Mac to perhaps this was just obvious to everyone else.我是 Mac 的新手,也许这对其他人来说是显而易见的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM