Drafts and Update

This commit is contained in:
lumaa-dev 2024-09-22 11:17:31 +02:00
parent f8a78b35b8
commit 052f63d95c
4 changed files with 50 additions and 12 deletions

View File

@ -17,6 +17,10 @@
</array> </array>
</dict> </dict>
</array> </array>
<key>UIAppFonts</key>
<array>
<string>PolySans-BulkyWide.ttf</string>
</array>
<key>UIBackgroundModes</key> <key>UIBackgroundModes</key>
<array> <array>
<string>remote-notification</string> <string>remote-notification</string>

View File

@ -749,6 +749,16 @@
} }
} }
}, },
"accounts.subclub" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "sub.club Account"
}
}
}
},
"activity" : { "activity" : {
"localizations" : { "localizations" : {
"en" : { "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" : { "instance.rules" : {
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -1781,6 +1811,16 @@
} }
} }
}, },
"learn.subclub" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "About sub.club"
}
}
}
},
"login.instance.unsafe" : { "login.instance.unsafe" : {
"localizations" : { "localizations" : {
"en" : { "en" : {

View File

@ -46,5 +46,7 @@ struct PostDraftView: View {
ContentUnavailableView("status.drafts.empty", systemImage: "plus.circle.dashed") ContentUnavailableView("status.drafts.empty", systemImage: "plus.circle.dashed")
} }
} }
.presentationDragIndicator(.visible)
.presentationDetents(drafts.count > 0 ? [.large] : [.medium, .large])
} }
} }

View File

@ -39,23 +39,15 @@ struct UpdateView: View {
var features: some View { var features: some View {
VStack(spacing: 60) { 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) .frame(height: 500)
} }
private var widgetIcon: String {
if #available(iOS 18.0, *) {
return "widget.small.badge.plus"
} else {
return "paintbrush"
}
}
@ViewBuilder @ViewBuilder
private func newFeature(systemImage: String, title: String, text: String) -> some View { private func newFeature(systemImage: String, title: String, text: String) -> some View {
ViewThatFits { ViewThatFits {