Skip to content

There's no Layout loop occur in example #1

@archerLj

Description

@archerLj

I used the following example code in AppCoda


class ViewController: UIViewController {    
    override func viewDidLoad() {        
             super.viewDidLoad()         
            LayoutLoopHunter.setUp(for: view) {            
                   print("Hello, world")        
            } 
    }     
   override func viewDidLayoutSubviews(){       
          super.viewDidLayoutSubviews()        
          view.setNeedsLayout() // loop creation    
    }
}

but there's no layout loop occur when i execute this example. And layoutSubviews block was only executed two times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions