Search code examples
xcodeswiftuiscrollview

ScrollView cause Evaluating dispatch of UIEvent:


Why ScrollView shows event logs in console?

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

Logs

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

Is this behavior normal or something messing up with UIEvent? I am new to ScrollView.


Solution

  • Edit the scheme, and under Run, select Arguments, and add the following under Environment Variables:

    Name: OS_ACTIVITY_MODE, Value: disable

    Hide strange unwanted Xcode logs

    https://developer.apple.com/forums/thread/63277

    I've had to do the same with Xcode 15 betas, but it didn't appear in Xcode 14.

    EDIT: spelling.