From 052f63d95c9f0b4b0ca1eda943c57c1dd2d3a4e9 Mon Sep 17 00:00:00 2001 From: lumaa-dev Date: Sun, 22 Sep 2024 11:17:31 +0200 Subject: [PATCH] Drafts and Update --- Bubble/Info.plist | 4 +++ Bubble/Localizable.xcstrings | 42 +++++++++++++++++++++++++- Bubble/Views/Post/PostDraftView.swift | 2 ++ Bubble/Views/Settings/UpdateView.swift | 14 ++------- 4 files changed, 50 insertions(+), 12 deletions(-) diff --git a/Bubble/Info.plist b/Bubble/Info.plist index 50a660f..306fe9e 100644 --- a/Bubble/Info.plist +++ b/Bubble/Info.plist @@ -17,6 +17,10 @@ + UIAppFonts + + PolySans-BulkyWide.ttf + UIBackgroundModes remote-notification diff --git a/Bubble/Localizable.xcstrings b/Bubble/Localizable.xcstrings index ad0ce9e..bdecb4e 100644 --- a/Bubble/Localizable.xcstrings +++ b/Bubble/Localizable.xcstrings @@ -749,6 +749,16 @@ } } }, + "accounts.subclub" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "sub.club Account" + } + } + } + }, "activity" : { "localizations" : { "en" : { @@ -1621,6 +1631,26 @@ } } }, + "info.subclub.collaboration" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "This feature is from a collaboration between sub.club and Bubble" + } + } + } + }, + "info.subclub.description" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "sub.club is a third-party service that allows Mastodon accounts to be premium accounts" + } + } + } + }, "instance.rules" : { "localizations" : { "en" : { @@ -1781,6 +1811,16 @@ } } }, + "learn.subclub" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "About sub.club" + } + } + } + }, "login.instance.unsafe" : { "localizations" : { "en" : { @@ -4973,4 +5013,4 @@ } }, "version" : "1.0" -} +} \ No newline at end of file diff --git a/Bubble/Views/Post/PostDraftView.swift b/Bubble/Views/Post/PostDraftView.swift index b248481..c665c17 100644 --- a/Bubble/Views/Post/PostDraftView.swift +++ b/Bubble/Views/Post/PostDraftView.swift @@ -46,5 +46,7 @@ struct PostDraftView: View { ContentUnavailableView("status.drafts.empty", systemImage: "plus.circle.dashed") } } + .presentationDragIndicator(.visible) + .presentationDetents(drafts.count > 0 ? [.large] : [.medium, .large]) } } diff --git a/Bubble/Views/Settings/UpdateView.swift b/Bubble/Views/Settings/UpdateView.swift index 4afb055..11046a0 100644 --- a/Bubble/Views/Settings/UpdateView.swift +++ b/Bubble/Views/Settings/UpdateView.swift @@ -39,23 +39,15 @@ struct UpdateView: View { var features: some View { VStack(spacing: 60) { - newFeature(imageName: "HeroIcon", title: "Bubble!", text: "All previous \"Threaded\" are cleared off the app!") + newFeature(imageName: "SubClubMark", title: "sub.club", text: "A full sub.club integration was made!") - newFeature(systemImage: "plus.square.dashed", title: "Drafts", text: "Keep a list of your thought-of future posts") + newFeature(systemImage: "questionmark.square.dashed", title: "Drafts will be back", text: "The \"Drafts\" button has been removed, all previous Drafts are saved anyway") - newFeature(systemImage: widgetIcon, title: "New widgets", text: "Check them in the Control Center! And other places...") + newFeature(systemImage: "person.2.badge.gearshape.fill", title: "Improved profiles", text: "Display names have been slightly improved") } .frame(height: 500) } - private var widgetIcon: String { - if #available(iOS 18.0, *) { - return "widget.small.badge.plus" - } else { - return "paintbrush" - } - } - @ViewBuilder private func newFeature(systemImage: String, title: String, text: String) -> some View { ViewThatFits {