Releases: KalebCooper/swift-responsive-layout
Releases · KalebCooper/swift-responsive-layout
Release list
0.4.0
Changed
- Repository renamed from
ResponsiveLayoutKittoswift-responsive-layout
(https://github.com/KalebCooper/swift-responsive-layout), following the
swift-*package naming convention. The package manifestnameis now
swift-responsive-layout. The library product and module remain
ResponsiveLayoutKit, soimport ResponsiveLayoutKitis unchanged.
GitHub redirects the old URL, but update.package(url:)and any
.product(name:package:)references (package: "swift-responsive-layout").
The DocC site now lives at
https://kalebcooper.github.io/swift-responsive-layout/. - Xcode scheme is now
swift-responsive-layout(auto-generated from the
manifestname). CI, the PR template, and CONTRIBUTING reference the new
scheme name.
0.3.0
Added
\.responsiveLayoutenvironment value: the canonically resolved layout
family as a value (override → scene truth → container size class → phone),
for feeding computed properties, view arguments, and pure functions without
the closure APIs.\.containerResponsiveLayoutis the container-shaped
companion that deliberately ignores scene truth.responsiveContentWidth(tabletFraction:): caps scroll content to a readable
fraction of the scene width on tablet layouts (default
baseTabletLayoutRatio), full-width on phone — the SwiftUI analogue of
UIKit'sreadableContentGuide. Applied to aScrollView's content, the
scroll surface stays edge-to-edge.accessibilityScrollFloor(_:): declares a compressible floor for greedy
views (aspect-ratio images, maps) insideaccessibilityScrollView(_:), so
they shrink to the floor before the scrolling decision fires instead of
forcing permanent scrolling via their large ideal height.sceneLayout(mocking:)+SceneLayoutMockValues: publish a synthetic scene
environment for previews and tests, making every scene-truth read — family, size,
orientation, safe area — resolve against declared values on any canvas.SceneLayoutEnvironment.isLandscapeAspectRatio: whether the scene is wider
than tall — the aspect-ratio answer layout math wants, distinct from
interfaceOrientationunder freely resized windows.SceneLayoutReaderis now public: closure-based scene-truth access with
self-discovery when no anchor exists upstream.- DocC article "First Frame and Scene Discovery": the
sceneLayout == nil
first-frame contract and the prescribed one-expression fallback patterns. - Demo app coverage for the new APIs: resolved-value readouts, a readable
content width screen, a compressible-floor screen, and a mocked-scene
preview.
Changed
- Claude Code skill (
responsivelayoutkit) documents the new value-level,
content-width, floor, mock, and reader APIs, and warns against hand-rolled
resolution chains. Plugin bumped to 1.1.0.