andreamazz / andreamazz/AMScrollingNavbar

ScrollingNavigationController.updateNavbarAlpha steps on third party toolbar buttons

オープン
#323 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Swift
スター
6k
フォーク
628
PR マージ指標
30日以内にマージされた PR はありません

説明

updateNavbarAlpha hammers the alphas of all subviews of everything on the toolbar, including some third party libraries we use that do special things with their toolbar buttons.

the specific problem is the nested function:
```swift
func setAlphaOfSubviews(view: UIView, alpha: CGFloat) {
view.alpha = alpha
view.subviews.forEach { setAlphaOfSubviews(view: $0, alpha: alpha) }
}
```

the easiest solution would be to make this function a public function instead of nested function inside a private function, so we could just override the behavior with our own logic.

otherwise adding a property ScrollingNavigationController to exclude button subviews by name or class would be needed.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。