I have seen a few articles or video’s on iOS 15’s new Self._printChanges()
function, but can not find any documentation on it anywhere. Does anyone know where Apple documented this new function? It is pretty obvious how to use it, but I would like to see what more we can do with it and knowing more about it would be helpful. Even Xcode’s lookup’s yield nothing. Anyone find anything?
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
Unfortunately,
_printChanges()
is a private API, which is why it’s undocumented. The only reason so many videos and articles referenced it is because an Apple engineer mentioned it during WWDC21. Here’s what they said:However, Xcode does show a summary when you Option + Click.
Looks like it is documented now.
https://developer.apple.com/documentation/swift-playgrounds/console-print-debugging#Understand-when-and-why-your-views-change