scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS
MIT License
5.61k stars 509 forks source link

Replace PR #551 change using fatalError() #563

Closed scenee closed 2 years ago

scenee commented 2 years ago

This resolves #561. The solution of #551 has a side effect on the case of #561, so I replace the solution with fatalError.

Instead of continuing to work a modal presentation transition even if it's not .hidden state, it just crash using the fatalError and the error message as a programmer error.