Before our recent changes, the Swift output followed the order of the header (
Private declarations (present only in the implementation file) appeared at the end of the Swift output.
A few of our users suggested revising this behavior since the implementation (
.m) file is considered more important to follow than the header (
Now the Swift output is structured as follows:
- Declarations present in the
.hfile only (but not in the
.mfile) are listed first.
- Declarations from the
.mfile are listed afterward, preserving the original ordering.
See this GitHub issue for the details and rationale.