FrameworkInspector
FrameworkInspector copied to clipboard
View the internals of a Swift framework
Framework Inspector
View the internals of Swift frameworks

Usage
NOTE: If the framework you are trying to inspect is not linked, it won't be able to find the type information. Be sure to add the framework to the
Frameworks, Libraries, and Embedded Contentfield in thexcodeproj.
Let's say we want to have a look around the internals of SwiftUI:
- Press
Choose .tbdand navigate to the.tbdfile. You can find a.tbdfile for SwiftUI at/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SwiftUI.framework/SwiftUI.tbd - The symbols should load into the sidebar. You can search for a specific symbol with the searchbar in the top right corner. For instance, we can search for
nominal type descriptor for SwiftUI.Text - After choosing a symbol, the type information is loaded on the right side. In this case, we can see that
SwiftUI.Textkeeps an array ofModifiers, which is an enum with the variousTextmodifiers available.