Closed LucasVanDongen closed 7 years ago
Solved. It expects everything wrapped in an NSNumber
Changed
options[kCRToastNotificationPreferredHeightKey] = size as AnyObject
To
options[kCRToastNotificationPreferredHeightKey] = NSNumber(value: size)
And it worked.
Note: I replaced all occurrences of primitives now, also the time interval and statusbar bool!
'NSInternalInconsistencyException', reason: 'Invalid size {320, 0} for item <CRToastView: 0x7fac30e10d70; frame = (0 0; 320 0); autoresize = W; userInteractionEnabled = NO; layer = <CALayer: 0x61000003ef80>> in Dynamics'
I'm not sure what's causing it to crash. Works fine as long as I don't use .custom but I need a bit more space to show a list of errors.