Never block main thread

Why? UI rendering (UIKit) works in the main thread.
How? All heavy lifting (time-consuming) should be moved out of main thread, including:

  • Disk I/O
  • Networking, e.g., API calls
  • Large computations
  • Use GCD, and/or Operation

Leave a comment