Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

View controller removal bug#23

Merged
6 commits merged into
masterfrom
feature/view_controller_removal_bug
Nov 20, 2018
Merged

View controller removal bug#23
6 commits merged into
masterfrom
feature/view_controller_removal_bug

Conversation

@edrutter-je

Copy link
Copy Markdown
Contributor

Fix bug where a ViewController's view was not removed from it's superview when calling remove(viewController: UIViewController) if it was embedded in a 'padding view'.

@stevenwarren-je

Copy link
Copy Markdown
Contributor

If we only call removeFromSuperview on the view controllers view, the 'padding view' will remain in the view hierarchy.

arrangedView.removeFromSuperview() will take care of it all, including removing arrangedView from arrangedSubviews.

@stevenwarren-je

Copy link
Copy Markdown
Contributor

@edrutter-je would appreciate it if you gave this a wee once over :)

@edrutter-je

Copy link
Copy Markdown
Contributor Author

LGTM

@ghost ghost merged commit 06469f8 into master Nov 20, 2018
@ghost ghost deleted the feature/view_controller_removal_bug branch November 20, 2018 09:23
@ghost ghost changed the title VIew controller removal bug View controller removal bug Dec 4, 2018
This was referenced Dec 4, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants