Commit graph

16 commits

Author SHA1 Message Date
Chaoshuai Lyu
ef2e6dcbba Make LazyView conform to LeafElement too
Summary:
This diff makes `LazyView` conform to `LeafElement` as long as `ViewType` is a `LeafElement`.

This way so that we can pass `LazyView` to `LeftElement` directly, instead of having to call `.loadIfNeeded`.

Differential Revision: D90431927

fbshipit-source-id: d891d1ee736889f6d4ec26b9a111994c6c57c13b
2026-01-12 11:02:38 -08:00
Chaoshuai Lyu
94eea8d748 Add unit tests for LazyView
Summary: Added unit tests to `LazyView` so that we have more coverage.

Differential Revision: D90432337

fbshipit-source-id: 83701ef8b15fc7b457945d41cc385f992ab0c4b7
2026-01-12 11:02:38 -08:00
Nick Sidiropulo
db8536b648 Full quick layout
Summary: Rendering everything using quick layout, stop using viewDidLayoutSubviews extensively

Differential Revision: D90290072

fbshipit-source-id: 1d88d585c2995e21fa97f59d029eb50d67bc9a74
2026-01-08 11:06:51 -08:00
Saadh Zahid
0408b8eb69 Fixing typos in snapshot tests file names
Summary: Some of the test files have typos, fixed.

Reviewed By: D3migod

Differential Revision: D89725386

fbshipit-source-id: d19e008a6aa49a81da6aedcfc8c02e1d07e44b2d
2026-01-05 08:43:34 -08:00
Jaxtyn
a9a87bedf1 Fix typo in defaultAlignmentIDs (#14)
Summary:
- Fixed a typo in a constant name.
- No behavior changes.

Pull Request resolved: https://github.com/facebookincubator/QuickLayout/pull/14

Differential Revision: D90108619

Pulled By: constantine-fry

fbshipit-source-id: db0070950aecc527ca5aa216db3a1f8d28739c24
2026-01-05 06:23:01 -08:00
Constantine Fry
62310c0a7f Change the wording about QuickLayout usage in IG
Summary: The previous description may have implied that QuickLayout is already widely adopted throughout Instagram, which isn't accurate. The updated wording provides a clearer and more honest message: QuickLayout is the recommended approach moving forward, but it does not exaggerate its current usage. This helps set realistic expectations: QuickLayout is the preferred solution, yet, due to the scale of Instagram’s codebase, a complete migration will take time.

Reviewed By: minmkim, saadhzahid

Differential Revision: D88381324

fbshipit-source-id: c0d2c6e0b743417f18f85e9018bb05d02de6a8a9
2025-12-06 06:33:57 -08:00
nuomi1
edf9ed03d8 Fix bodyContainerView with UITableViewHeaderFooterView and UIVisualEf… (#9)
Summary:
…fectView

Pull Request resolved: https://github.com/facebookincubator/QuickLayout/pull/9

Reviewed By: fabiomassimo

Differential Revision: D88369945

Pulled By: constantine-fry

fbshipit-source-id: 7a72f2be4a7ebc430013b49e244337c4b87d3343
2025-12-04 07:38:42 -08:00
Constantine Fry
21f38de88a Add another sample for view controllers.
Reviewed By: saadhzahid

Differential Revision: D88157540

fbshipit-source-id: 2271517051f30ca8d048046ec86e664b9b95c731
2025-12-02 15:30:47 -08:00
Constantine Fry
ae0d031581 Expand the docs around @QuickLayout usage and the manual integration
Summary: People have reported to me that Devmate often uses .applyFrame when using QuickLayout. However, it's against the recommendation. I updated the docs so that it's even more clear.

Differential Revision: D87983350

fbshipit-source-id: f7dd2c18a5e4de9c8b671447c9b845cadeaba4d1
2025-11-27 09:39:03 -08:00
Saadh Zahid
64ea1d62fe Fixing mistake in docs
Summary: I noticed there was a mismatch between the diagrams and the code samples--Resolved.

Differential Revision: D87924557

fbshipit-source-id: e49c7fc633891a6d340808eca1a375f95e83616f
2025-11-26 06:43:46 -08:00
Constantine Fry
38ee8fb461 Add github link and fix dark theme
Summary: {F1983762567} {F1983762568}

Reviewed By: saadhzahid

Differential Revision: D87784658

fbshipit-source-id: 920a78c27134a6df86233245b46f8e077c5a1567
2025-11-24 09:41:15 -08:00
Constantine Fry
f1bab1da4a Add a sample for CollectionViewCell
Summary: ditto

Reviewed By: saadhzahid

Differential Revision: D87453439

fbshipit-source-id: 526adb4d0ab79bdfaf18524e8a89687767c99210
2025-11-19 10:09:40 -08:00
Xavier Jurado Cristobal
0c1ab2a79e Fix vulnerability in js-yaml by upgrading to 4.1.1
Summary:
Updated the `js-yaml` dependency from version 4.1.0 to ^4.1.1 to address a known security vulnerability. The package was added as a direct dependency to ensure explicit control over the version and allow future patch and minor version updates.

This change affects the QuickLayout documentation site which uses Docusaurus. The semver range (^4.1.1) ensures that future patch versions (4.1.2, 4.1.3, etc.) and minor versions (4.2.0, 4.3.0, etc.) will be automatically picked up while preventing breaking changes from major version updates.

Reviewed By: saadhzahid

Differential Revision: D87346632

fbshipit-source-id: 0ba9971a8386264b6ef8cf4fb3c2c0cf06f8e8c1
2025-11-19 03:17:30 -08:00
Tushar Sabale
67ca636f7d Upgrade dom-iterator from 1.0.0 to 1.0.2
Summary:
The 3P Library Vulnerability Remediation Team is dedicated to remediating high-risk external libraries at Meta using both manual and automated processes. Older versions of this library have been identified as risky, and this diff stack is intended to upgrade the library to a recommended version.
We kindly request your help with the diff review. Please commandeer this diff stack if specific merges need to be added or if there are any build or dependency failures.

Asset Name: asset://code.third_party_library/fbsource/fbobjc%2FLibraries%2FMobileUI%2FQuickLayout%2Fdocs%2Fyarn.lock%23pkg:npm%2Fdom-iterator@1.0.0
Asset Version: 1.0.0
Asset Vulnerabilities:
CVE-2024-21541, CWEs: Improper Control of Generation of Code ('Code Injection')
Version to upgrade to: 1.0.1

Additional Info: This diff contains updated yarn files and changes to update vulnerable package. As a part of this diff performed below steps
update resolutions section with recommended version
run yarn install
revert changes in resolutions section
run yarn install

Reviewed By: ide-2

Differential Revision: D87274669

fbshipit-source-id: ed5fff58404052f259cedddb9a9b8f09b158aa5f
2025-11-18 12:48:19 -08:00
Constantine Fry
47ffabdb3b Update docusaurus dependencies
Reviewed By: saadhzahid

Differential Revision: D87326662

fbshipit-source-id: 70c7d927e590287b2fe89c3070b17622d0fd7255
2025-11-18 06:50:33 -08:00
facebook-github-bot
cf25689181 Initial commit
fbshipit-source-id: ac9cb65f0bb8a29acff5b6664ede5c4ce7a1a632
2025-11-14 14:11:10 -08:00