mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Dismiss room invite notifications when rejecting them from the home screen. (#4074)
This commit is contained in:
@@ -8,6 +8,13 @@
|
||||
import Combine
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
/// Applies a shimmering effect to the view.
|
||||
func shimmer() -> some View {
|
||||
modifier(ShimmerModifier())
|
||||
}
|
||||
}
|
||||
|
||||
/// A view modifier that applies a shimmering effect to the view.
|
||||
struct ShimmerModifier: ViewModifier {
|
||||
/// A boolean which is toggled to trigger the animation.
|
||||
@@ -59,18 +66,12 @@ struct ShimmerModifier: ViewModifier {
|
||||
}
|
||||
}
|
||||
|
||||
extension View {
|
||||
/// Applies a shimmering effect to the view.
|
||||
func shimmer() -> some View {
|
||||
modifier(ShimmerModifier())
|
||||
}
|
||||
}
|
||||
|
||||
struct ShimmerOverlay_Previews: PreviewProvider, TestablePreview {
|
||||
static let viewModel = HomeScreenViewModel(userSession: UserSessionMock(.init(clientProxy: ClientProxyMock(.init(userID: "")))),
|
||||
analyticsService: ServiceLocator.shared.analytics,
|
||||
appSettings: ServiceLocator.shared.settings,
|
||||
selectedRoomPublisher: CurrentValueSubject<String?, Never>(nil).asCurrentValuePublisher(),
|
||||
appSettings: ServiceLocator.shared.settings,
|
||||
analyticsService: ServiceLocator.shared.analytics,
|
||||
notificationManager: NotificationManagerMock(),
|
||||
userIndicatorController: ServiceLocator.shared.userIndicatorController)
|
||||
|
||||
static var previews: some View {
|
||||
|
||||
Reference in New Issue
Block a user