LayoutLoopHunter icon indicating copy to clipboard operation
LayoutLoopHunter copied to clipboard

There's no Layout loop occur in example

Open archerLj opened this issue 5 years ago • 0 comments

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.

archerLj avatar May 07 '19 03:05 archerLj