2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00
Nathan Mattes ef8ceb56c9
Improve "Load more"-times when scrolling to the end (IOS-272) (#1303)
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.
2024-05-29 08:35:56 +02:00
2024-02-29 18:15:30 +01:00
2024-02-29 18:15:30 +01:00
2024-02-29 18:15:30 +01:00
2024-05-22 17:24:46 +02:00
2024-05-22 17:24:46 +02:00
2023-09-22 15:27:46 +02:00
2022-10-08 14:01:21 +08:00
2023-10-10 12:48:47 +02:00
2024-03-11 22:31:16 +01:00
2024-03-11 22:31:16 +01:00
2021-07-31 18:18:34 +08:00
2024-03-29 19:37:32 +09:00
2022-11-15 01:44:28 +08:00

Mastodon

CI Crowdin

Download on the App Store

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.

Developing an official iOS app for Mastodon

Getting Started

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.

Description
Official iOS app for Mastodon
Readme GPL-3.0 72 MiB
Languages
Swift 99.7%
Shell 0.2%