Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Revert "Add drop shadow to separate bar button and body text" #2588

Merged
merged 2 commits into from
Jan 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions Classes/Repository/RepositoryViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -299,21 +299,6 @@ EmptyViewDelegate {
present(alert, animated: trueUnlessReduceMotionEnabled)
}

private func addDropShadow() {
guard let buttonBarView = buttonBarView else {
return
}

let shadowPath = UIBezierPath(rect: CGRect(origin: CGPoint(x: 0, y: buttonBarView.bounds.height),
size: CGSize(width: buttonBarView.bounds.width, height: 1)))
buttonBarView.layer.masksToBounds = false
buttonBarView.layer.shadowColor = UIColor.darkGray.cgColor
buttonBarView.layer.shadowOpacity = 1
buttonBarView.layer.shadowPath = shadowPath.cgPath
buttonBarView.layer.shouldRasterize = true
buttonBarView.layer.shadowRadius = 2
}

// MARK: ButtonBarPagerTabStripViewController Overrides

override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
Expand Down Expand Up @@ -346,12 +331,4 @@ EmptyViewDelegate {
fetchDetails()
}

// MARK: UIViewController Overrides

override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()

addDropShadow()
}

}