khoren93 / SwiftHub

GitHub iOS client in RxSwift and MVVM-C clean architecture
MIT License
3.03k stars 536 forks source link

Opening the wrong file leads to long wait time #27

Open jmmunoz14 opened 4 years ago

jmmunoz14 commented 4 years ago

Is your feature request related to a problem? Please describe. If you are browsing the source code of a repository and you open a file which you didn’t intend to open, the app is completely frozen until it loads or you force close it. This also happens with file extensions which are clearly not supposed to be viewed (such as pdfs, wavs, mp4s, etc).

Describe the solution you'd like A way to stop the load of any file that is not supposed to be open, a simple “Cancel” button while loading.

Describe alternatives you've considered A cancel button on the loading screen and a check on file extensions which are not supported by SwiftHub.

Additional context Add any other context or screenshots about the feature request here.