skip to Main Content

Ios swift – AutoLayout layoutIfNeeded bounds update time

I have the following code in my custom UIView. This gets called from init(frame:) or init(coder:) initializer: private func setupContentView() { contentView = ContentView(frame: .zero) contentView.translatesAutoresizingMaskIntoConstraints = false addSubview(contentView) contentView.leftAnchor.constraint(equalTo: leftAnchor, constant:thumbWidth).isActive = true contentView.rightAnchor.constraint(equalTo: rightAnchor, constant: -thumbWidth).isActive = true…

VIEW QUESTION
Back To Top
Search