We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only ViewB should be on screen.
ViewB
ViewA is on screen on top of ViewB.
ViewA
SizesWindow
ViewControllerA
ViewControllerB
The text was updated successfully, but these errors were encountered:
I already spotted the problem and can provide a PR with a fix:
open class SizesWindow: UIWindow { public let sizesViewController = SizesViewController() override open var rootViewController: UIViewController? { get { return sizesViewController.containedController } set { guard let root = newValue, !root.isKind(of: SizesViewController.self) else { return } super.rootViewController = sizesViewController sizesViewController.contain(viewController: root) } } }
In the setter, before adding another child view controller we should remove the existing one if it's there. I can submit a PR.
Sorry, something went wrong.
Exactly. I think we need to modify the contain(viewController: _) method to handle this. I'd really appreciate a PR :).
contain(viewController: _)
Fix issue marcosgriselli#19
9cc9927
Done! 🙌
Closed in #20
No branches or pull requests
Expected Behavior
Only
ViewB
should be on screen.Actual Behavior
ViewA
is on screen on top ofViewB
.Steps to Reproduce the Problem
SizesWindow
as app window in AppDelegateViewControllerA
ViewControllerB
ViewA
andViewB
are on screenThe text was updated successfully, but these errors were encountered: