Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Swift
  3. Sizes

Sizes

MITSwift0.3.0

A Swift library for iOS developers to preview apps across multiple device sizes, orientations, and font combinations.

GitHubGitHub
1.2k stars53 forks0 contributors

What is Sizes?

Sizes is a Swift library for iOS that allows developers to preview their app's UI across different device sizes, orientations, and font combinations. It solves the problem of manually testing layouts on multiple simulators, which is time-consuming and error-prone.

Target Audience

iOS developers who use Auto Layout and Dynamic Type, particularly those working on apps that need to support multiple device sizes and accessibility font scaling.

Value Proposition

Developers choose Sizes because it provides a quick, integrated way to validate UI changes across many configurations without leaving the app, reducing testing time and preventing layout bugs before shipping.

Overview

View your app on different device and font sizes

Use Cases

Best For

  • Testing iOS app layouts across iPhone and iPad screen sizes
  • Validating UI responsiveness when switching between portrait and landscape orientations
  • Checking Dynamic Type compatibility for accessibility font scaling
  • Debugging Auto Layout constraints in different device configurations
  • Quickly previewing UI changes without launching multiple simulators
  • Ensuring consistent typography across all supported font sizes

Not Ideal For

  • Teams already using Xcode Previews for SwiftUI or UIKit development
  • Projects that rely on manual frame-based layouts instead of Auto Layout
  • Environments requiring automated UI testing in CI/CD pipelines
  • Developers seeking actively maintained libraries for modern iOS versions

Pros & Cons

Pros

Efficient Multi-Device Testing

Allows quick validation of UI across various iOS device sizes and orientations without launching simulators, saving significant manual testing time.

Integrated Font Scaling

Supports testing Dynamic Type font sizes directly within the app, ensuring accessibility compliance and typography consistency.

Debug-Only Safety

Designed to be used only in DEBUG mode, preventing performance overhead in production builds and avoiding accidental inclusion.

Universal Device Support

Works on both iPhone and iPad devices, covering the full spectrum of iOS screen sizes for comprehensive testing.

Cons

Officially Deprecated

The README explicitly recommends deprecation due to Xcode 11's native Previews feature, making it obsolete for modern development workflows.

Auto Layout Dependency

Requires apps to use Auto Layout exclusively; projects with manual or alternative layout systems won't benefit from Sizes.

Setup Complexity

Involves replacing the app's main window with SizesWindow, which can interfere with custom window management or third-party integrations.

Limited to Debug Mode

Cannot be used for automated testing in production or CI/CD environments, restricting its utility to manual debugging only.

Frequently Asked Questions

Quick Stats

Stars1,226
Forks53
Contributors0
Open Issues4
Last commit3 years ago
CreatedSince 2018

Tags

#auto-layout#ios#dynamic-type#ui-testing#device#accessibility#swift#xcode#uifont#uikit

Built With

i
iOS
S
Swift

Included in

Swift26.0k
Auto-fetched 7 hours ago

Related Projects

QuickQuick

The Swift (and Objective-C) testing framework.

Stars9,827
Forks896
Last commit16 days ago
OHHTTPStubsOHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

Stars5,068
Forks598
Last commit1 year ago
NimbleNimble

A Matcher Framework for Swift and Objective-C

Stars4,841
Forks609
Last commit15 days ago
UI Testing Cheat SheetUI Testing Cheat Sheet

How do I test this with UI Testing?

Stars2,167
Forks169
Last commit6 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