2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00
Nathan Mattes 1a2cf272a6
New 💊 (IOS-234) (#1268)
- 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 🙂 


![ios_234_iphone](https://github.com/mastodon/mastodon-ios/assets/2580019/c77df339-aa72-406f-8be3-572acb244246)

![ios_234_ipad](https://github.com/mastodon/mastodon-ios/assets/2580019/f2fafc4c-ed5a-4afb-86a7-5de69325997b)

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) {

```
2024-04-10 15:06:22 +02:00
2024-02-29 18:15:30 +01:00
2024-02-29 18:15:30 +01:00
2024-03-12 09:08:52 +01:00
2024-02-29 18:15:30 +01:00
2024-04-10 15:06:22 +02:00
2024-04-10 15:06:22 +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
2023-10-10 12:48:47 +02: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%