Skip to content

Latest commit

 

History

History
 
 

40-Project30

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Project 30 - Instruments

https://www.hackingwithswift.com/100/97

Includes solutions to the challenges.

Topics

Instruments, Time Profiler, Allocations, Shadows, Table cells in code

Challenges

From Hacking with Swift:

  1. Go through project 30 and remove all the force unwraps. Note: implicitly unwrapped optionals are not the same thing as force unwraps – you’re welcome to fix the implicitly unwrapped optionals too, but that’s a bonus task.
  2. Challenge 2
  3. For a tougher challenge, take the image generation code out of cellForRowAt: generate all images when the app first launches, and use those smaller versions instead. For bonus points, combine the getDocumentsDirectory() method I introduced in project 10 so that you save the resulting cache to make sure it never happens again.

Screenshots

screenshot1 screenshot2