mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
i think ive fixed all the performance issues w searching
This commit is contained in:
5 files changed
+38
-19
No files matched your search
@@ -142,3 +142,19 @@ extension View {
|
||||
modifier(TabViewBottomAcceessorySafe(isEnabled: isEnabled, contents: content))
|
||||
}
|
||||
}
|
||||
|
||||
struct fadeIn: ViewModifier {
|
||||
@State private var isVisible: Bool = false
|
||||
|
||||
func body(content: Content) -> some View {
|
||||
content
|
||||
.opacity(isVisible ? 1 : 0)
|
||||
.scaleEffect(isVisible ? 1 : 0)
|
||||
.onAppear {
|
||||
withAnimation { isVisible = true }
|
||||
}
|
||||
.onDisappear {
|
||||
withAnimation { isVisible = false }
|
||||
}
|
||||
}
|
||||
}
|
||||