A Swift library for iOS developers to preview apps across multiple device sizes, orientations, and font combinations.
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.
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.
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.
View your app on different device and font sizes
Allows quick validation of UI across various iOS device sizes and orientations without launching simulators, saving significant manual testing time.
Supports testing Dynamic Type font sizes directly within the app, ensuring accessibility compliance and typography consistency.
Designed to be used only in DEBUG mode, preventing performance overhead in production builds and avoiding accidental inclusion.
Works on both iPhone and iPad devices, covering the full spectrum of iOS screen sizes for comprehensive testing.
The README explicitly recommends deprecation due to Xcode 11's native Previews feature, making it obsolete for modern development workflows.
Requires apps to use Auto Layout exclusively; projects with manual or alternative layout systems won't benefit from Sizes.
Involves replacing the app's main window with SizesWindow, which can interfere with custom window management or third-party integrations.
Cannot be used for automated testing in production or CI/CD environments, restricting its utility to manual debugging only.
The Swift (and Objective-C) testing framework.
Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
A Matcher Framework for Swift and Objective-C
How do I test this with UI Testing?
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.