mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00

This is basically a refactoring of the `ListBatchFetchViewModel`, it does two things: 1. Remove the "Reload this every 30 seconds", which caused a delay on several screens 2. When users reach the bottom of the ScrollView, new content is requested 3. DIY: Use this mechanism everywhere The previous mechanism worked like this: Check every second, if the user reached the end of the scrollView. If so: `shouldFetch`. As we increased "every second" to "30 seconds", this caused a significant delay on all screens which used this mechanism. Others brought their own solution to fetch new content when users reached THE END, like the HomeTimeline or the FollowerList. From now one, there's a suggested way to deal with this "We must do something once the user reachs the end!!!!"-issue. P.S.: I'm not so happy with the `Self.`-approach and if someone has a better name for `scrollViewDidScrollToEnd`, I'd be also thankful for a hint. Maybe it's me, but I would have loved to add a new method to the `UIScrollViewDelegate`-protocol (without Protocol-inheritance). Maybe someone knows a way to do this? For now we'll leave it like this as the alternatives would add more complexity.
Mastodon
Introduction
This is the repository for the official iOS App for Mastodon. You can install it from the App Store now. You can build the app from source and file bug report here.
Read this blog post for this app to learn more.
Getting Started
- Read the setup guide here
- About contributing
- Documentation folder
- App Store Deployment
Acknowledgments
Thanks to these open-source projects listed here.
License
This project is released under the GPL-3 License. It is also dual-licensed to Apple for the purposes of publishing the app on the App Store. For this reason, any contributors are required to sign a Contributor License Agreement.
Languages
Swift
99.7%
Shell
0.2%