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

- Replaces the view previously in the Navigation Bar with the new, so-called Timeline Status Pill - We use it to show three states: When a post has been published (successfully), when new statuses are available or when five (I slightly increased the limit) requests failed - The Timeline Status Pill features some fancy animations and a little shadow - For further details have a look at IOS-234 🙂   To simulate the different reasons I used this snippet. When you press the Settings-button, you should see the 💊 : ```diff diff --git a/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift b/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift index 8559025d4..0eb27d0e8 100644 --- a/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift +++ b/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift @@ -488,9 +488,14 @@ extension HomeTimelineViewController { } @objc private func settingBarButtonItemPressed(_ sender: UIBarButtonItem) { - guard let setting = context.settingService.currentSetting.value else { return } + // don't commit + timelinePill.update(with: .newPosts) + showTimelinePill() - _ = coordinator.present(scene: .settings(setting: setting), from: self, transition: .none) +// guard let setting = context.settingService.currentSetting.value else { return } +// +// _ = coordinator.present(scene: .settings(setting: setting), from: self, transition: .none) + // don't commit } @objc private func refreshControlValueChanged(_ sender: RefreshControl) { ```
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%