Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 88d8f35

Browse files
author
👒
committed
chore: qol improvements
1 parent 9761f99 commit 88d8f35

2 files changed

Lines changed: 42 additions & 38 deletions

File tree

Protokolle/Views/Settings/About/SYAboutView.swift

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -20,49 +20,51 @@ struct SYAboutView: View {
2020

2121
var body: some View {
2222
Form {
23-
Section {
24-
VStack {
25-
Image(uiImage: (UIImage(named: Bundle.main.iconFileName ?? ""))! )
26-
.appIconStyle(size: 72)
27-
28-
Text(Bundle.main.name)
29-
.font(.largeTitle)
30-
.bold()
31-
.foregroundStyle(.tint)
32-
33-
HStack(spacing: 4) {
34-
Text(.localized("Version"))
35-
Text(Bundle.main.version)
23+
if !isLoading {
24+
Section {
25+
VStack {
26+
Image(uiImage: (UIImage(named: Bundle.main.iconFileName ?? ""))! )
27+
.appIconStyle(size: 72)
28+
29+
Text(Bundle.main.name)
30+
.font(.largeTitle)
31+
.bold()
32+
.foregroundStyle(.tint)
33+
34+
HStack(spacing: 4) {
35+
Text(.localized("Version"))
36+
Text(Bundle.main.version)
37+
}
38+
.font(.footnote)
39+
.foregroundStyle(.secondary)
40+
3641
}
37-
.font(.footnote)
38-
.foregroundStyle(.secondary)
39-
4042
}
41-
}
42-
.frame(maxWidth: .infinity)
43-
.listRowBackground(EmptyView())
44-
45-
Section(.localized("Credits")) {
46-
if !_credits.isEmpty {
47-
ForEach(_credits, id: \.github) { credit in
48-
_credit(name: credit.name, desc: credit.desc, github: credit.github)
43+
.frame(maxWidth: .infinity)
44+
.listRowBackground(EmptyView())
45+
46+
Section(.localized("Credits")) {
47+
if !_credits.isEmpty {
48+
ForEach(_credits, id: \.github) { credit in
49+
_credit(name: credit.name, desc: credit.desc, github: credit.github)
50+
}
51+
.transition(.slide)
4952
}
50-
.transition(.slide)
5153
}
52-
}
53-
54-
Section(.localized("Sponsors")) {
55-
if !_donators.isEmpty {
56-
Group {
57-
Text(try! AttributedString(markdown: _donators.map {
58-
"[\($0.name ?? $0.github)](https://github.com/\($0.github))"
59-
}.joined(separator: ", ")))
60-
61-
Text(.localized("💚 This couldn't of been done without my sponsors!"))
62-
.foregroundStyle(.secondary)
63-
.padding(.vertical, 2)
54+
55+
Section(.localized("Sponsors")) {
56+
if !_donators.isEmpty {
57+
Group {
58+
Text(try! AttributedString(markdown: _donators.map {
59+
"[\($0.name ?? $0.github)](https://github.com/\($0.github))"
60+
}.joined(separator: ", ")))
61+
62+
Text(.localized("💚 This couldn't of been done without my sponsors!"))
63+
.foregroundStyle(.secondary)
64+
.padding(.vertical, 2)
65+
}
66+
.transition(.slide)
6467
}
65-
.transition(.slide)
6668
}
6769
}
6870
}

Protokolle/Views/Stream/SYStreamViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,15 @@ class SYStreamViewController: UICollectionViewController {
195195
}
196196

197197
@objc func scrollAllTheWayDown() {
198+
let generator = UIImpactFeedbackGenerator(style: .light)
198199
collectionView.scrollToItem(
199200
at: IndexPath(row: dataSource.snapshot().numberOfItems - 1, section: 0),
200201
at: .bottom,
201202
animated: false
202203
)
203204
downButton.isEnabled = false
204205
automaticallyScrollToBottom = true
206+
generator.impactOccurred()
205207
}
206208

207209
@objc func showInvalidAlert() {

0 commit comments

Comments
 (0)