Skip to content

26.0.0

Latest
Compare
Choose a tag to compare
@davdroman davdroman released this 15 Sep 22:59
· 6 commits to main since this release
a08b87f

Keeping Up With Cupertino

SwiftUI Introspect is now adopting a yearly versioning scheme that aligns with Apple’s OS releases (iOS, iPadOS, macOS, tvOS, visionOS). Starting with v26.0.0, the major version number will match the corresponding OS release. This makes it immediately clear which OS versions are supported without needing to consult the changelog.

.package(url: "https://github.com/siteline/swiftui-introspect", from: "26.0.0"),

For library authors

If your library depends on SwiftUI Introspect, declare a version range that spans at least the last two major versions instead of jumping straight to the latest. This avoids conflicts when apps pull the library directly or through multiple dependencies. For example:

.package(url: "https://github.com/siteline/swiftui-introspect", "1.3.0"..<"27.0.0"),

A wider range is safe because SwiftUI Introspect is essentially “finished”: no new features will be added, only newer platform versions and view types. Thanks to @_spi(Advanced) imports, library authors can future proof without needing to jump onto the latest major version right away.

Over time, Introspect is expected to become less necessary — and eventually obsolete — as SwiftUI matures, more views move away from UIKit/AppKit underpinnings, and additional SwiftUI modifiers cover many of the common use cases for introspection.

What's Changed

Full Changelog: 1.3.0...26.0.0