exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6.01k stars 553 forks source link

Remove lots of force unwrapping #745

Open rsmartatl opened 3 years ago

rsmartatl commented 3 years ago

and instead guard for nil values at top of function or other protections that wont crash embedding programs, although new behaviours may not be optimal they are better than a crash.

rsmartatl commented 3 years ago

@ystrot hey mate. I guess I might have missed part of the process to put this on your radar but we'd really like to ensure the framework doesn't accidentally crash the app with a force unwrap. Would you mind having a look at this?

vox-humana commented 3 years ago

Just to add more context. This is follow up of #732 discussion and this previously merged PR #733