mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 20:54:51 +00:00
ui updates
This commit is contained in:
3 files changed
+57
-36
No files matched your search
@@ -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))
|
||||||
|
}
|
||||||
|
}
|
||||||