Christian Tietze

  • Blog Posts
  • Writing
  • Apps
  • Work With Me
  • Contact

How to Inspect SwiftUI.TextField.onSubmit and Figure Out You Can't Programmatically Use It

Jun 6th, 2023

Teaser image

I wanted to know how a SwiftUI TextField gets to know its onSubmit handler to wire my own NSViewRepresentable to it (would be the same for a UIViewRepresentable). There’s no key for that block in the EnvironmentValues structure that you get from the “context”, though.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • swiftui
    • nstextfield
    • lldb

Find Out if Xcode/LLDB Debugger Is Attached to Current App

Jul 1st, 2019

This time, I don’t want to find out if the app is compiled as debug/release mode; I want to find out if the debugger is attached. I found an Objective-C answer on StackOverflow which is based on HockeyApp-iOS.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • debugging
    • lldb
    • xcode

Contact • Newsletter • Blog Feed • /feeds • /now • /uses • @ctietze@mastodon.social • Privacy & Legal Information

Except where otherwise noted, content on this site is licensed CC BY-SA 4.0.

As an Amazon Associate I earn from qualifying purchases. This e.g. applies to links to Amazon.com.