@stroughtonsmith Swift’s equivalent to headers are the .swiftinterface files in the SDK. It should be possible to diff them just like header files (possibly with SwiftSyntax for an AST-based diff), but I don’t know if someone has already done the work (and yes, Apple should do this for us).
Example: [Xcode.app]/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/arm64e-apple-ios.swiftinterface
@ole @stroughtonsmith (formatted documentation pages are great, but they force everything into a "sort of OK" one-size-fits-all format. _Most_ headers were a mess, but every now and then you came across a project with really great headers that told the whole story of the API in a way that autogenerated documentation pages can not)
And generated docs have a _really_ hard time wrangling with complex conditionals (if you're on this system with this version, you use the API like this because of these considerations, on this other system this doesn't work at all, here's how you should work around it. On these newer systems, you can use this other API instead...) Well-written headers were great for this stuff.
@steve @ole what if there were a mode for Swift that required header-style 'specs' or something? Something that could be a design pattern, that a framework provider could adopt…
(Also, you get most of this if you just use @-objcimplementation with objc headers, but it doesn't have a way to describe every kind of Swift type)