You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to set @QuickLayout view frame in UIViewController #7
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// how to set MyCellView frame
view.addSubview(MyCellView())
}
}
changed the title [-]How to set quick layout view frame in UIViewController[/-][+]How to set @QuickLayout view frame in UIViewController[/+]on Dec 1, 2025
This is a very good question. Let me convert it to a discussion so other people can find it in the future. This issues will be closed and locked, but feel free to keep the conversation in the discussion.
Activity
[-]How to set quick layout view frame in UIViewController[/-][+]How to set @QuickLayout view frame in UIViewController[/+]constantine-fry commentedon Dec 1, 2025
Hi @zeroskylian, thanks for trying QuickLayout. There are multiple way of achieving what you need:
bodyand callbody.applyFramein theviewDidLayoutSubviews.You also can achieve that without QuickLayout as well just call the
sizeThatFitsand set the returned size on cellView.Let me know if you have any further questions. Cheers!
constantine-fry commentedon Dec 1, 2025
This is a very good question. Let me convert it to a discussion so other people can find it in the future. This issues will be closed and locked, but feel free to keep the conversation in the discussion.