This fixes #64 was caused by us accessing the view bounds from a background queue. The draw(_ layer: CALayer, in con: CGContext) method is called on a background queue. UIKit must always be accessed from the main queue. When we fetch the bounds for filling the background and fixing the rotation, we failed to conform to this rule.
This PR fixes this issue by firstly fetching the bound on the main queue.
This fixes #64 was caused by us accessing the view bounds from a background queue. The
draw(_ layer: CALayer, in con: CGContext)
method is called on a background queue. UIKit must always be accessed from the main queue. When we fetch the bounds for filling the background and fixing the rotation, we failed to conform to this rule.This PR fixes this issue by firstly fetching the bound on the main queue.