freshOS/Stevia
57.9
Adequate · 30 September 2026
3.6k
lines of production code
Swift
primary language
2
measurements over time
What this system is
This system is the Stevia layout library for iOS and tvOS, designed to simplify view hierarchy construction and layout management through a concise, operator-based syntax. It provides a modern Swift API featuring function builders, flexible spacing, and percentage-based margins, while ensuring App Store compliance via privacy manifests. The project includes an example application demonstrating live code reloading and maintains a comprehensive test suite migrated to the native Swift Testing framework.
Features
Login example now supports live code reloading via InjectionIII
The LoginStevia example project has been updated to integrate InjectionIII, enabling live code reloading for iOS development. The AppDelegate now loads the InjectionIII bundle, and the LoginVC view controller includes a listener for the INJECTION\_BUNDLE\_NOTIFICATION to automatically reload the view hierarchy when code changes are detected, allowing developers to see UI updates instantly without restarting the app.
LoginExample/LoginStevia · high confidence
Behavioural changes
Added Privacy Manifest for App Store Compliance
A new PrivacyInfo.xcprivacy file has been added to the Sources directory to declare the app's privacy practices. The manifest explicitly states that the app does not use tracking, does not collect any data types, and does not access restricted APIs, ensuring compliance with Apple's App Privacy requirements.
Sources · high confidence
Added Xcode workspace configuration for Swift Package Manager
A new \.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata\ file has been added to the repository. This file configures the Xcode workspace to reference the local package, enabling developers to open and edit the Swift package directly within Xcode.
.swiftpm · high confidence
Login example project restructured and Stevia framework embedded
The LoginStevia example project has been reorganized to include the Stevia framework as an embedded dependency, ensuring it is correctly linked and bundled with the application. The project structure now explicitly references Stevia in the Frameworks build phase and includes specific source files for both native and Stevia-based login views (LoginViewNative.swift and LoginViewStevia.swift), alongside standard app components like AppDelegate and LoginVC.
LoginExample/LoginStevia.xcodeproj · high confidence
Major API overhaul with new layout operators and function builders
The Stevia layout library has been refactored to introduce several new capabilities and syntax changes. A new \SubviewsBuilder\ function builder is now available, allowing \subviews\ to be called with a closure for defining view hierarchies, while the legacy \sv\ shorthand is deprecated in favor of \subviews\. New infix operators have been added, including the hyphen bullet operator (\⁃\) as an alternative to the double-dash operator (\--\) for spacing, and the tilde operator (\\~\) for setting view heights. The API now supports percentage-based margins via \SteviaPercentage\ and flexible margins using \\>=\ and \\<=\ prefixes. Additionally, a new \SteviaLayoutConstraint\ class allows for customizable default priorities and easier removal of user-added constraints, and alignment functions now support baseline alignment for text views.
Sources/Stevia · high confidence
Test coverage
Migrates test suite to Swift Testing framework
The test suite in the Tests directory has been migrated from the previous testing infrastructure to the native Swift Testing framework. All test files (including BaselineTests, CenterTests, ContentTests, EquationTests, FillTests, FlexibleMarginTests, FullLayoutTests, GetConstraintsTests, HierarchyTests, LayoutTests, PositionTests, SizeTests, and StyleTests) now use the @Suite and @Test attributes, the \#expect assertion macro, and the @MainActor annotation, ensuring compatibility with modern Swift tooling and Xcode 12+.
Tests · high confidence
Dependencies
Stevia 6.2.2: Swift 6 migration, tvOS support, and new dependency
This release updates the Stevia layout library to version 6.2.2, introducing support for tvOS (minimum iOS/tvOS 12.0) and migrating the project to Swift 6. The package now depends on the \swift-numerics\ library (version 1.0.2) and includes a privacy manifest file. The podspec and Swift Package Manager manifest have been updated to reflect these platform and language version requirements.
(dependencies) · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 61 → 58 (-2.6)
- Rubric changed (rubric-2026.09.11 → rubric-2026.09.18) — scores are not directly comparable.
Lenses
- Code Health 100 → 95 (-5.0)
- Architecture 100 → 93 (-7.3)
- Maturity 33 → 45 (+11.6)
- Readiness 67 → 45 (-22.0)
- Security 100 → 100 (+0.0)
Resolved (2)
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
New (11)
- Coverage not measured — Swift suite
- Duplicate operations with different naming conventions (snake_case vs camelCase) for the same intent. Both align(tops:) and alignTops: are exposed, along with similar pairs for bottoms, lefts, and rights.
- Duplicate operations with different naming conventions (snake_case vs camelCase) for the same intent. Both equal(sizes:) and equalSizes: are exposed, along with similar pairs for widths and heights.
- Duplicate operations with different naming conventions (snake_case vs camelCase) for the same intent. The library exposes both align(horizontally:) and alignHorizontally: variants, creating confusion for users about which to use.
- Duplicated block (11 lines × 3) (Sources/Stevia/Stevia+Equation.swift)
- Duplicated block (9 lines × 3) (Sources/Stevia/Stevia+Stacks.swift)
- Low cohesion: UIView (LCOM4 10) (Sources/Stevia/Stevia+Center.swift)
- Outdated: swift-numerics
- TooManyMethods: UIView (Sources/Stevia/Stevia+Center.swift)
- UIView.layout (cognitive 62) (Sources/Stevia/Stevia+Center.swift)
- UIView.layout (cyclomatic 31) (Sources/Stevia/Stevia+Center.swift)
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
freshOS/Stevia was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 30 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 6192b6216f821b7132e9b772108f25af8cf8ebc5 — the exact code this score is about.
- Scored under rubric-2026.09.18 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-cb25ca4feafa.