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",
"bleh",
"uhh",
"communist"
// "communist",
// "ufahh",
// "uhafh",
// "uhgfh",
// "uoohh",
// "ujyhgghh",
// "uhfgh",
// "ujg3thh",
// "uyhh",
// "ughhhh",
// "uvhh",
// "ujrg3tjthhg",
// "ujherh",
// "uxhggrh",
// "ushgrq3geallh",
// "u hrgqh",
// "ujjjjjyhgh",
// "uherhh",
// "uhhesh",
// "hhreruhgh",
// "u hffh",
// "uh h",
// "uaugerhh",
// "u4h3h",
// "u4hh",
// "ueyhh ",
// "u erthh",
// "uhujh",
// "ujkkkkhh"
// "communist"
"communist",
"ufahh",
"uhafh",
"uhgfh",
"uoohh",
"ujyhgghh",
"uhfgh",
"ujg3thh",
"uyhh",
"ughhhh",
"uvhh",
"ujrg3tjthhg",
"ujherh",
"uxhggrh",
"ushgrq3geallh",
"u hrgqh",
"ujjjjjyhgh",
"uherhh",
"uhhesh",
"hhreruhgh",
"u hffh",
"uh h",
"uaugerhh",
"u4h3h",
"u4hh",
"ueyhh ",
"u erthh",
"uhujh",
"ujkkkkhh"
]
)
}
@@ -167,18 +167,16 @@ struct EmojiPackDetailView: View {
}
.animation(.spring, value: pack.items)
.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)")
.bold()
.multilineTextAlignment(.center)
.shadow(radius: 5)
.padding(.bottom)
}
.transition(.scale)
.navigationTitle(edit ? "Editing" : "Pack Details")
.navigationBarTitleDisplayMode(.inline)
.onDisappear {
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.