From b13652dcee37c7b22e09edd53e2ef45e03675aed Mon Sep 17 00:00:00 2001 From: Jeffrey Macko Date: Sat, 14 Nov 2026 03:04:10 +0100 Subject: [PATCH 1/2] Rewrite the README: site link, compiling snippets, supported values The usage snippet wrote .dynamicTypeSize(.xSmall), which does not compile because the payload is Any. Install from 1.1.4, link the site and docs, list the supported values and the cases that are no-ops. --- README.md | 109 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 70 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 20a9835..7f6e139 100644 --- a/README.md +++ b/README.md @@ -1,83 +1,114 @@ +[![CI](https://github.com/mackoj/EnvironmentVariationPreview/actions/workflows/ci.yml/badge.svg)](https://github.com/mackoj/EnvironmentVariationPreview/actions/workflows/ci.yml) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmackoj%2FEnvironmentVariationPreview%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/mackoj/EnvironmentVariationPreview) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmackoj%2FEnvironmentVariationPreview%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/mackoj/EnvironmentVariationPreview) # EnvironmentVariationPreview -EnvironmentVariationPreview is a SwiftUI library designed to simplify the process of previewing your SwiftUI views in a variety of environments. The code of this library work exclusively with the simulator. +**[Website](https://mackoj.github.io/EnvironmentVariationPreview/)** · +**[Architecture rules](docs/architecture-rules.md)** · +**[Performance](docs/performance.md)** + +One SwiftUI view modifier, `.environmentVariations([...])`, that renders a view once per environment value, side by +side and captioned: light and dark, right-to-left, the smallest and largest dynamic type, any locale, and 30 more +environment values. It compiles only for the simulator, so it ships nothing in your app. | video | image | | --- | --- | -|