Fix modal blur navigation - #39
Conversation
Capture the window behind transition containers so navigation-backed modals blur visible root content instead of an empty container.
| let referenceView: UIView? = navBar.superview ?? self.view | ||
| let cellFrame: CGRect = cell.convert(cell.bounds, to: referenceView) | ||
| let navBarFrame: CGRect = navBar.convert(navBar.bounds, to: referenceView) | ||
| if navBarFrame.intersects(cellFrame) { self.navigationController?.setNavigationBarHidden(true, animated: true) } |
There was a problem hiding this comment.
Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)
| internal class FluidBlurredBackgroundView: BlurView, FluidBackgroundCompatible { | ||
| internal class FluidBlurredBackgroundView: UIView, FluidBackgroundCompatible { | ||
| private static let ciContext = CIContext(options: nil) | ||
| private static let blurQueue = DispatchQueue(label: "Fluidable.FluidBlurredBackgroundView.blur", qos: .userInitiated) |
There was a problem hiding this comment.
Line Length Violation: Line should be 120 characters or less: currently 121 characters (line_length)
| blue: CGFloat(pixel[2]) / 255, | ||
| alpha: CGFloat(pixel[3]) / 255) | ||
| } | ||
| } |
There was a problem hiding this comment.
File Length Violation: File should contain 400 lines or less: currently contains 3320 (file_length)
|
|
||
| let visibleView: XCUIElement = app.otherElements.element(matching: .other, identifier: model.visibleControllerViewAccessibilityIdentifier) | ||
| let scrollView: XCUIElement = app.scrollViews.element(matching: .scrollView, identifier: model.parentScrollViewAccessibilityIdentifier) | ||
| let scrollTopView: XCUIElement = app.otherElements.element(matching: .other, identifier: model.parentScrollTopViewAccessibilityIdentifier) |
There was a problem hiding this comment.
Line Length Violation: Line should be 120 characters or less: currently 146 characters (line_length)
| self.assertEventually(optionButton.exists) | ||
|
|
||
| let visibleView: XCUIElement = app.otherElements.element(matching: .other, identifier: model.visibleControllerViewAccessibilityIdentifier) | ||
| let scrollView: XCUIElement = app.scrollViews.element(matching: .scrollView, identifier: model.parentScrollViewAccessibilityIdentifier) |
There was a problem hiding this comment.
Line Length Violation: Line should be 120 characters or less: currently 143 characters (line_length)
| let optionButton = app.buttons["Option"] | ||
| self.assertEventually(optionButton.exists) | ||
|
|
||
| let visibleView: XCUIElement = app.otherElements.element(matching: .other, identifier: model.visibleControllerViewAccessibilityIdentifier) |
There was a problem hiding this comment.
Line Length Violation: Line should be 120 characters or less: currently 146 characters (line_length)
Summary
Verification