LayoutKit
LayoutKit copied to clipboard
LayoutKit is a fast view layout library for iOS, macOS, and tvOS.
Hi guys, I have some experience using LayoutKit, but I am struggling with a really simple use case. I am not sure if I I am missing something or if...
 This problem can be fixed after i added "import Foundation" in ViewRecycler.swift
If we initialize the LabelLayout asynchronously with an NSAttributedString, most of the time we don't have to set the font, but the default access to UILabel(). Font, this is not...
Playground code ```Swift import UIKit import PlaygroundSupport import LayoutKit let rootView = UIView(frame: CGRect(x: 0, y: 0, width: 320, height: 300)) rootView.backgroundColor = .white let fontDescriptor = UIFontDescriptor.preferredFontDescriptor(withTextStyle: .body) let...
Hi, As I understand it, you should be able to use the same `viewReuseId` for different layouts as long as they create the same UIView class and configure the same...
like the kind of ` View.contenView` eg: ``` class BlurLayout: SizeLayout< UIVisualEffectView > { .......... } ``` it will crash: ``` extension View { /** Similar to `addSubview()` except if...
I'm using layoutKit with UICollectionView. Using a custom UIControll object with SizeLayout in specific Cell causing weird behavior. let reaction = SizeLayout( height: 40, viewReuseId: "reaction", config: { reactionButton in...
I'd like to be able to align labels inside a horizontal stack based on their baseline. We could Add a new Alignment properties: (Vertical.baseline). If the contained object doesn't have...
I encountered a strange animation happening in my cells using LayoutKit. It happens only in iOS 11. iOS 10 behaves normally, with no resizing of the elements inside. I wasn't...
Hi, The current solution for updating an `UICollectionViewCell` using reloadItems with `BatchUpdates` will dequeue a new cell from `UICollectionView` and apply the generated views from `LayoutArrangement` on that cell. This...