e1ernal / News

News
0 stars 0 forks source link

Выбор типа новостей #3

Open e1ernal opened 1 month ago

e1ernal commented 1 month ago

Добавить выбор типа новостей Horizontal Slide Menu в NavigationItem

e1ernal commented 1 month ago

extension UINavigationController { func hideHairline() { if let hairline = findHairlineImageViewUnder(navigationBar) { hairline.isHidden = true } } func restoreHairline() { if let hairline = findHairlineImageViewUnder(navigationBar) { hairline.isHidden = false } } func findHairlineImageViewUnder(_ view: UIView) -> UIImageView? { if view is UIImageView && view.bounds.size.height <= 1.0 { return view as? UIImageView } for subview in view.subviews { if let imageView = self.findHairlineImageViewUnder(subview) { return imageView } } return nil } }

e1ernal commented 1 month ago

https://stackoverflow.com/questions/26390072/how-to-remove-border-of-the-navigationbar-in-swift

e1ernal commented 1 month ago

https://karh.in/view-in-the-uinavigationbar

e1ernal commented 1 month ago

https://www.youtube.com/watch?v=ZxIAT7f-yh8