layoutBox/FlexLayout
69.8
Adequate · 15 November 2026
3.4k
lines of production code
Swift
primary language
5
measurements over time
What this system is
Features
Add FlexLayoutSample iOS example application
The FlexLayoutSample iOS example application has been added, providing a comprehensive suite of UI demonstrations for the FlexLayout library. The app includes an introductory view, basic flexbox layout examples, a self-sizing UICollectionView implementation for displaying house listings, and a detailed recreation of the Ray Wenderlich Yoga tutorial. It also features common utility components such as a base view controller, a custom BasicView for visualizing layout bounds, and image downloading extensions, all structured to showcase how FlexLayout integrates with PinLayout for container positioning.
Example/FlexLayoutSample · high confidence
Initial Fastlane automation for iOS builds and deployment
Added a new Fastfile to automate the iOS build, test, and deployment pipeline. The configuration defines lanes for installing dependencies, running SwiftLint, building the FlexLayoutInner and FlexLayoutSample schemes (including an SPM example), executing unit tests via Scan, generating documentation with Jazzy, and handling CocoaPods podspec versioning and GitHub releases during deployment.
fastlane · high confidence
New CocoaPods-based example project for FlexLayout
The repository now includes a dedicated \FlexLayoutSample\ project located in \Example/cocoapods\, which demonstrates how to integrate FlexLayout using CocoaPods as the dependency manager. This new project file structure, including its Xcode project settings and workspace configuration, complements the existing Swift Package Manager example, providing users with a complete, ready-to-run CocoaPods setup for testing and adopting the library. Also in this area: 3 commits (0 fixes) modifying Example.
Example/SPM/FlexLayoutSample-SPM.xcodeproj · medium confidence · unverified
Support for new Flexbox properties and SPM compatibility
This update adds support for several new CSS-like Flexbox properties, including \align-content: space-evenly\, \position: static\, \box-sizing\, and \display: contents\. It also introduces the \isFlexEnabled\ property on UIViews to check if FlexLayout is active. Additionally, the library has been refactored to support Swift Package Manager (SPM) by replacing the custom \FLEXLAYOUT\_SWIFT\_PACKAGE\ macro with the standard \SWIFT\_PACKAGE\ define and updating import syntax, while ensuring thread safety with \@MainActor\ isolation for associated objects.
Sources/Swift/Impl · high confidence
Swift implementation of FlexLayout with MainActor isolation and new layout properties
This change introduces the Swift source files for the FlexLayout library, providing a native Swift interface for flexbox-based UI layout on iOS. The core \Flex\ class is now isolated to the \@MainActor\ to ensure thread safety, and exposes new layout properties including \direction\, \gap\, \border\, \cornerRadius\, and \contents\ display mode. It also adds support for percentage-based sizing via a new \FPercent\ struct and postfix \%\ operator, and integrates with the Yoga layout engine through \YGLayoutExtensions\ to handle value conversions. Users can now define layouts using a fluent Swift API that mirrors CSS flexbox concepts.
Sources/Swift · high confidence
YogaKit integration with layout validation and baseline support
This change introduces the YogaKit source files (UIView+Yoga.mm and YGLayout.mm) into the project, enabling the use of the Yoga layout engine for iOS views. The implementation includes validation for node mutations (markDirty, SetMeasureFunc) to prevent invalid states, adds support for baseline measurement (specifically for UILabels), and ensures pixel-perfect rendering by rounding intrinsic size values and handling NaN dimensions to prevent crashes. It also restores the ability to move views between superviews and configures the global Yoga config with web flex basis and classic errata settings.
Sources/YogaKit · high confidence
Behavioural changes
1 commit (0 fixes) modifying Example/SPM/FlexLayoutSample-SPM.xcodeproj/project.xcworkspace
A change to existing behaviour in Example/SPM/FlexLayoutSample-SPM.xcodeproj/project.xcworkspace — 1 commit, 2 files: “Split the Example project in 2 projects: \* FlexLayoutSample: Use cocoapods as dependency manager \* FlexLayoutSample-SPM: Use SPM (Swift Packager Manager) as dependency manager”.
Example/SPM/FlexLayoutSample-SPM.xcodeproj/project.xcworkspace · medium confidence · unverified
1 commit (0 fixes) modifying Example/SPM/FlexLayoutSample-SPM.xcodeproj/xcshareddata
A change to existing behaviour in Example/SPM/FlexLayoutSample-SPM.xcodeproj/xcshareddata — 1 commit, 1 file: “Update”.
Example/SPM/FlexLayoutSample-SPM.xcodeproj/xcshareddata · medium confidence · unverified
Public header file relocated to Sources/Swift/Public
The \FlexLayout.h\ public header has been moved to the \Sources/Swift/Public\ directory. This change ensures that the framework's public interface, including imports for \UIView+Yoga\, \YGLayout+Private\, and the Yoga library headers, is correctly exposed for iOS projects using library path includes.
Sources/Swift/Public · medium confidence
YogaKit 2.0 public header update with boxSizing and gap support
The YogaKit headers in Sources/YogaKit/include have been updated to version 2.0, introducing support for the \boxSizing\ property and the \gap\ function (including \columnGap\, \rowGap\, and \gap\) on the \YGLayout\ class. The public API now exposes \UIView+Yoga\ with a \configureLayoutWithBlock\ method for performance optimization in Objective-C, and \YGLayout\ properties are fully defined in the new public headers, replacing previous internal or private declarations.
Sources/YogaKit/include · high confidence
Fixes
Added Xcode workspace configuration for Swift Package Manager
A new \contents.xcworkspacedata\ file has been added to the \.swiftpm/xcode/package.xcworkspace\ directory. This file defines an Xcode workspace that references the local package, enabling developers to open and build the Swift package directly within Xcode.
.swiftpm · high confidence
Test coverage
Added comprehensive test suite for FlexLayout layout behaviors
Added new XCTest files in the Tests directory to verify FlexLayout functionality, including tests for view insertion and removal, inset positioning (relative, absolute, and static), content justification, margins, padding (including percentage-based values), and width/height sizing constraints.
Tests · high confidence
Dependencies
FlexLayout 2.2.3 release with Yoga 3.2.1 and iOS 13.4 minimum
This release updates the FlexLayout library to version 2.2.3, integrating the Yoga layout engine at version 3.2.1. The minimum supported iOS platform has been raised to 13.4, and the package now requires the C++20 language standard for compilation. These changes are reflected in the updated Podspec, Package.swift, and resolved dependency files. Also in this area: 1 commit updating dependencies (2 manifests).
(dependencies) · medium confidence · unverified
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 66 → 70 (+3.8)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 98 → 94 (-4.0)
- Architecture 97 → 96 (-0.4)
- Maturity 61 → 61 (+0.0)
- Readiness 57 → 68 (+11.2)
- Security 80 → 82 (+2.1)
Resolved (3)
- Medium: security finding (details withheld)
- Outdated: PinLayout
- Outdated: SwiftLint
New (6)
- Edited copies of one member (3 members, 17+ corresponding lines) (Example/FlexLayoutSample/UI/Examples/YogaExampleB/YogaExampleBView.swift)
- Edited copies of one member (5 members, 7+ corresponding lines) (Sources/Swift/FlexLayout.swift)
- Edited copy of a member (11 corresponding lines) (Example/FlexLayoutSample/UI/Examples/Example1/Example1View.swift)
- Edited copy of a member (5 corresponding lines) (Example/FlexLayoutSample/UI/Examples/RaywenderlichTutorial/RaywenderlichTutorialView.swift)
- Edited copy of a member (6 corresponding lines) (Sources/Swift/FlexLayout.swift)
- Edited copy of a member (8 corresponding lines) (Sources/Swift/FlexLayout.swift)
Changes since last survey
- 20 commits — 14 feature/other, 6 fixes
By area
- (repo) — 5 commits
- (root) — 5 commits
- .github/workflows — 5 commits
- Tests/FlexLayoutTests — 3 commits
- Example/SPM — 1 commit
- Sources/YogaKit — 1 commit
Notable commits
- fix: Add regression test for text truncation after intrinsic measurement
- fix: Fix SPM installation version in README
- fix: Fix layout application for non-Flex views
- fix: Merge pull request #287 from heoblitz/fix/non_flex_view_layout
- fix: Merge pull request #289 from stleamist/fix/yoga-text-truncation
- fix: Update Yoga to 3.2.2 to fix text truncation
- change: Avoid duplicate CI runs for pull requests
- change: Merge pull request #288 from layoutBox/chore/remove-cocoapods
- change: Merge pull request #290 from layoutBox/release/2.3.0
- change: Merge pull request #291 from heoblitz/chore/swift-testing-ci-migration
- change: Migrate core layout tests to Swift Testing
- change: Migrate spacing tests to Swift Testing
- change: Raise SPM example deployment target to iOS 15
- change: Remove CocoaPods and Carthage from docs
- change: Remove CocoaPods setup and build with Swift Package
- change: Run CI on Xcode 27 runner
- change: Run SwiftLint from PATH instead of CocoaPods
- change: Select Xcode with DEVELOPER_DIR
- change: Update actions/checkout to v7
- change: Update version to 2.3.0
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
layoutBox/FlexLayout 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 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 18c09d0bc36eb5fc20cea00d6409465d6297a5c9 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.