ui updates

This commit is contained in:
neon443 committed 2026-04-14 22:47:01 +01:00
1 parent cf57bccf2f
commit 0b50400598
3 files changed
+57 -36

No files matched your search

+30 -30
View File
@@ -134,36 +134,36 @@ extension EmojiPack {
"loll", "loll",
"bleh", "bleh",
"uhh", "uhh",
"communist" // "communist"
// "communist", "communist",
// "ufahh", "ufahh",
// "uhafh", "uhafh",
// "uhgfh", "uhgfh",
// "uoohh", "uoohh",
// "ujyhgghh", "ujyhgghh",
// "uhfgh", "uhfgh",
// "ujg3thh", "ujg3thh",
// "uyhh", "uyhh",
// "ughhhh", "ughhhh",
// "uvhh", "uvhh",
// "ujrg3tjthhg", "ujrg3tjthhg",
// "ujherh", "ujherh",
// "uxhggrh", "uxhggrh",
// "ushgrq3geallh", "ushgrq3geallh",
// "u hrgqh", "u hrgqh",
// "ujjjjjyhgh", "ujjjjjyhgh",
// "uherhh", "uherhh",
// "uhhesh", "uhhesh",
// "hhreruhgh", "hhreruhgh",
// "u hffh", "u hffh",
// "uh h", "uh h",
// "uaugerhh", "uaugerhh",
// "u4h3h", "u4h3h",
// "u4hh", "u4hh",
// "ueyhh ", "ueyhh ",
// "u erthh", "u erthh",
// "uhujh", "uhujh",
// "ujkkkkhh" "ujkkkkhh"
] ]
) )
} }
@@ -167,18 +167,16 @@ struct EmojiPackDetailView: View {
} }
.animation(.spring, value: pack.items) .animation(.spring, value: pack.items)
.padding() .padding()
.padding(.bottom, 32)
}
.transition(.scale)
.navigationTitle(edit ? "Editing" : "Pack Details")
.navigationBarTitleDisplayMode(.inline)
.overlay(alignment: .bottom) {
Text("\(pack.items.count) Emoji\(pack.items.count.plural)") Text("\(pack.items.count) Emoji\(pack.items.count.plural)")
.bold() .bold()
.multilineTextAlignment(.center) .multilineTextAlignment(.center)
.shadow(radius: 5) .shadow(radius: 5)
.padding(.bottom) .padding(.bottom)
} }
.transition(.scale)
.navigationTitle(edit ? "Editing" : "Pack Details")
.navigationBarTitleDisplayMode(.inline)
.onDisappear { .onDisappear {
hoarder.saveEmojiPacks() hoarder.saveEmojiPacks()
} }
@@ -119,3 +119,26 @@ struct ScrollContentBackgroundHidden: ViewModifier {
} }
} }
} }
struct TabViewBottomAcceessorySafe<T: View>: ViewModifier {
var isEnabled: Bool
@ViewBuilder var contents: () -> T
func body(content: Content) -> some View where Content: View {
if #available(iOS 26.1, *) {
content
.tabViewBottomAccessory(isEnabled: isEnabled, content: contents)
} else {
content
}
}
}
extension View {
func tabViewBottomAccessorySafe<Content: View>(
isEnabled: Bool = true,
@ViewBuilder content: @escaping () -> Content
) -> some View {
modifier(TabViewBottomAcceessorySafe(isEnabled: isEnabled, contents: content))
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.