Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Drawing using Core graphics and Core animation by Mridul Gupta

Drawing using Core graphics and Core animation by Mridul Gupta

Swift India Bangalore meet up - Chapter #20


Swift India

December 14, 2019


  1. Drawing Using Core Graphics and Core Animation - Mridul Noon

  2. Agenda - Efficient drawing - The role of Core Graphics

    & Core Animation in drawing - Problem statement and solution
  3. What is Core Graphics? - It is an advanced, two-dimensional

    drawing engine available for iOS. - CPU It Provides - Draw graphics - Provide graphics editing capabilities in an application - Create or display bitmap images - Work with PDF documents When we talk about Core graphics then the very first thing which comes to our mind is GraphicsContext
  4. What is Core Animation? - Core Animation is a graphics

    rendering and animation infrastructure - GPU - The Layer-Based Drawing Model
  5. Performance Optimization 90% 60

  6. Code Snippet(Legacy- Super Bad)

  7. Code Snippet(Optimised CPU)

  8. Code Snippet(Optimised GPU)

  9. None
  10. None
  11. ` 11

  12. Thank you