SWIFTUI ScrollView 导致评估 UIEvent 的调度:

问题描述 投票:0回答:0

为什么 ScrollView 在控制台中显示事件日志。

ScrollView {
             VStack(alignment: .leading, spacing:0) {
                  HStack{
                      Text("ScrollView Testing").font(.largeTitle)
                      Spacer()
                  }
             }
}

日志

Evaluating dispatch of UIEvent: 0x600003909ad0; type: 0; subtype: 0; backing type: 11; shouldSend: 1; ignoreInteractionEvents: 0, systemGestureStateChange: 0

这种行为是正常的还是 UIEvent 出了问题?我是 ScrollView 的新手。

xcode swiftui scrollview
© www.soinside.com 2019 - 2024. All rights reserved.