Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. LayoutKit

LayoutKit

Apache-2.0Swift10.1.0

A fast, declarative view layout library for iOS, macOS, and tvOS designed as a performant alternative to Auto Layout.

Visit WebsiteGitHubGitHub
3.1k stars261 forks0 contributors

What is LayoutKit?

LayoutKit is a fast view layout library for iOS, macOS, and tvOS applications. It provides a declarative API for building user interfaces, designed to solve performance issues encountered with Auto Layout in complex, scrollable view hierarchies. The library enables asynchronous layout computation and caching to maintain smooth user interactions.

Target Audience

iOS, macOS, and tvOS developers building high-performance applications with complex, scrollable UIs who need a more efficient alternative to Auto Layout.

Value Proposition

Developers choose LayoutKit for its superior performance over Auto Layout, its declarative and immutable design that improves code quality, and its seamless integration with UIKit components like UITableView and UICollectionView.

Overview

LayoutKit is a fast view layout library for iOS, macOS, and tvOS.

Use Cases

Best For

  • Building complex, scrollable interfaces where Auto Layout performance is insufficient
  • Applications requiring smooth scrolling with intricate view hierarchies
  • Implementing declarative UI layouts in Swift-based Apple platform apps
  • Improving UI rendering performance in production iOS applications
  • Developing internationalized apps with right-to-left language support
  • Precomputing and caching layouts to enhance perceived app speed

Not Ideal For

  • Projects requiring dynamic, constraint-based layout adjustments like Auto Layout
  • New iOS apps targeting modern frameworks such as SwiftUI
  • Teams needing ongoing library support and updates due to its unmaintained status
  • Simple applications where Auto Layout performance is sufficient without added complexity

Pros & Cons

Pros

High Performance

LayoutKit is as fast as manual code and significantly faster than Auto Layout, with benchmarks documented on layoutkit.org to support claims of superior speed in scrollable UIs.

Asynchronous Layout

Enables layout computations on background threads, preventing interruptions to user interactions on the main thread, which is critical for smooth scrolling in complex interfaces.

Declarative API

Uses immutable data structures for layouts, making code easier to develop, test, debug, and maintain, as highlighted in the README for improved developer experience.

UIKit Integration

Produces UIViews and provides adapters for UITableView and UICollectionView, ensuring seamless integration with existing UIKit workflows without major refactoring.

Cons

Unmaintained Project

No longer maintained by LinkedIn, posing significant risks for long-term support, bug fixes, and compatibility with future iOS versions, as explicitly stated in the README.

Not Constraint-Based

Lacks a constraint system, requiring custom logic for dynamic view relationships, which can be cumbersome compared to Auto Layout's flexible constraint model.

Limited Ecosystem

Being unmaintained and niche, it has a smaller community and fewer resources compared to Auto Layout or SwiftUI, making troubleshooting and adoption harder.

Frequently Asked Questions

Quick Stats

Stars3,136
Forks261
Contributors0
Open Issues41
Last commit5 years ago
CreatedSince 2016

Tags

#ios#linkedin#objective-c#tvos#ui#declarative-ui#layout-engine#mobile-development#ui-layout#swift#swift-library#macos#performance#uikit

Built With

S
Swift

Links & Resources

Website

Included in

iOS51.7k
Auto-fetched 1 day ago

Related Projects

SnapKitSnapKit

A Swift Autolayout DSL for iOS & OS X

Stars20,337
Forks2,048
Last commit8 days ago
YogaKitYogaKit

Yoga is an embeddable layout engine targeting web standards.

Stars18,766
Forks1,542
Last commit5 days ago
MasonryMasonry

Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout

Stars18,157
Forks3,152
Last commit3 years ago
FDTemplateLayoutCellFDTemplateLayoutCell

Template auto layout cell for automatically UITableViewCell height calculating

Stars9,874
Forks1,991
Last commit4 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub