Please note, this blog entry is from a previous course. You might want to check out the current one.
A new structure provides two sets of information – the view of the brick and its relative frame information (without information about the current device information). Store this structure for each brick in a dictionary:
var bricks = [Int:Brick]() struct Brick { var relativeFrame: CGRect var view: UIView }
Continue reading “cs193p – Project #5 Assignment #5 Step #3 – The Bricks”