Swift code style tweaks
Fixes issues with cliped content and incorrect 'unloaded' frame.