Skip to content

Commit

Permalink
Update drag background
Browse files Browse the repository at this point in the history
  • Loading branch information
golson-wmf committed Nov 8, 2024
1 parent a4c66e9 commit d8e252a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ public struct WMFYearInReviewView: View {

public init(viewModel: WMFYearInReviewViewModel) {
self.viewModel = viewModel
UINavigationBar.appearance().backgroundColor = theme.midBackground
let toolbarAppearance = UIToolbarAppearance()
toolbarAppearance.configureWithOpaqueBackground()
toolbarAppearance.backgroundColor = theme.midBackground
toolbarAppearance.shadowColor = .clear

UIToolbar.appearance().standardAppearance = toolbarAppearance
UIToolbar.appearance().compactAppearance = toolbarAppearance

}

let configuration = WMFSmallButton.Configuration(style: .quiet, trailingIcon: nil)
Expand Down Expand Up @@ -79,6 +86,7 @@ public struct WMFYearInReviewView: View {
// Logs slide impressions and next taps
viewModel.logYearInReviewSlideDidAppear()
}
.toolbarColorScheme(theme.preferredColorScheme)
.toolbar {
if !viewModel.isFirstSlide {
ToolbarItem(placement: .bottomBar) {
Expand Down

0 comments on commit d8e252a

Please sign in to comment.