Skip to content

Commit

Permalink
enhance: blur view effect
Browse files Browse the repository at this point in the history
  • Loading branch information
purr100 committed Nov 7, 2024
1 parent caab597 commit eb1f04b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
19 changes: 0 additions & 19 deletions Chato/Theme+Effect/Theme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ public extension View {
func lovelyRow() -> some View {
modifier(LoveRowView())
}

func lovelyNavi() -> some View {
modifier(LovelyNaviModifier())
}
}

struct LoveRowView: ViewModifier {
Expand Down Expand Up @@ -127,21 +123,6 @@ struct NavAppearanceModifier: ViewModifier {
}
}

struct LovelyNaviModifier: ViewModifier {
init() {
let navBarAppearance = UINavigationBarAppearance()
navBarAppearance.backgroundEffect = UIBlurEffect(style: .systemUltraThinMaterial)
navBarAppearance.shadowColor = .clear
UINavigationBar.appearance().standardAppearance = navBarAppearance
// UINavigationBar.appearance().compactAppearance = navBarAppearance
// UINavigationBar.appearance().scrollEdgeAppearance = navBarAppearance
}

func body(content: Content) -> some View {
content
}
}

#Preview {
LovelyPreview {
HomePage()
Expand Down
1 change: 0 additions & 1 deletion Chato/Views/HomePage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ struct HomePage: View {
}
}
}
.lovelyNavi()
.navigationDestination(for: Chat.self) { chat in
ChatDetailView(chat: chat)
}
Expand Down

0 comments on commit eb1f04b

Please sign in to comment.