Là một dự án mã nguồn mở, kean/Arranged đã đạt 204 sao trên GitHub, ngôn ngữ Swift. Open source replacement of UIStackView for iOS 8 (100% layouts supported)
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
UIStackView observes hidden property of arranged views, delays its effect if called inside animation block, and updates constraints accordingly. I believe this behavior is confusing and impractical to implement. Arranged.StackView provides a straightforward method setArrangedView(_:hidden:) which updates constraints exactly the same way as UIStackView does, but it doesn't affect hidden property.
Animations require you to call view.layoutIfNeeded() - just like with any regular layout
StackViewDistribution.FillProportionally doesn't update its constrains when intrinsicContentSize of arranged views changes due to the fact that UIStackView uses private API (_intrinsicContentSizeInvalidatedForChildView) to achieve that
UISV-text-width-disambiguation constraints are not implemented because they are not documented (and you probably should disambiguate text views the way that fits your app anyway)
Installation
CocoaPods
To install Arranged add a dependency to your Podfile:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/kean/Arranged là nguồn chính thức.
kean/Arranged có phải mã nguồn mở không?
Có — kean/Arranged phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/kean/Arranged.
kean/Arranged là gì?
kean/Arranged (kean/Arranged) là dự án Swift trên GitHub. Theo mô tả gốc: Open source replacement of UIStackView for iOS 8 (100% layouts supported)
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về Arranged?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về Arranged.