数据可视化ui
Yes, that should be possible via Visual Stress Tests!
是的,应该可以通过视觉压力测试来实现!
SwiftUI hot reload is a powerful tool for making sure that your views look pixel perfect. It also helps you to visualize how things will look under different environments (dark mode, accessibility, etc…). The super fast feedback cycle is a great help for making sure that your UI looks slick for all of your user base.
SwiftUI 热装是确保您的视图像素完美的强大工具。 它还可以帮助您可视化在不同环境(黑暗模式,可访问性等)下事物的外观。 超级快速的反馈周期对于确保您的用户界面对所有用户群而言都十分流畅非常有用。
The regular way to visualize your user interface is through the PreviewProvider
protocol. By adopting this protocol and providing a value for its static var previews {get}
field, SwiftUI renders your UI in the preview pane. The very default setup looks like:
可视化用户界面的常规方法是通过PreviewProvider
协议。 通过采用此协议并为其static var previews {get}
字段提供值,SwiftUI会在预览窗格中呈现您的UI。 非常默认的设置如下所示:
You would ideally want to see your new View on different devices, layouts and enviroments. That would make it easier to spot any UI problems before it reaches to your users.