How to check UIView is marked as needs-layout

Updated
Sep 30, 2021 1:40 PM
Created
Sep 30, 2021 1:39 PM
Tags

layer.needsLayout()

let view = UIView()

view.layer.needsLayout()

view.setNeedsLayout()

view.layer.needsLayout()

image