Xcode – When I return to main screen and then active my application again it crashes
Here is the line where debugger stops: let ystart = 24+Int((keyWindow?.safeAreaInsets.top)!) And the bug comment: Thread 1: Swift runtime failure: force unwrapped a nil value. I would add that the function above is executed every second. Maybe this will clarify…