Skip to content

Commit

Permalink
disable toolbar separator hiding for now
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Oct 9, 2023
1 parent 7e472c7 commit f09e23a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions DuckDuckGo/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ class MainViewCoordinator {

// The default after creating the hiearchy is top
var addressBarPosition: AddressBarPosition = .top
var toolbarImage: UIImage?

fileprivate init(superview: UIView) {
self.superview = superview
Expand All @@ -338,13 +337,11 @@ class MainViewCoordinator {
}

func showToolbarSeparator() {
toolbar.setShadowImage(toolbarImage, forToolbarPosition: .bottom)
// TODO setBackgroundImage, setShadowImage technique doesn't restore the separate.
}

func hideToolbarSeparator() {
// The shadow image is what defines the separator, but we don't need to change the background here (in fact we want to keep it).
toolbarImage = toolbar.shadowImage(forToolbarPosition: .bottom)
toolbar.setShadowImage(UIImage(), forToolbarPosition: .bottom)
// TODO
}

class Constraints {
Expand Down

0 comments on commit f09e23a

Please sign in to comment.