Skip to content
New issue

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

Updates overlap in UI #71

Closed
mattgabor opened this issue Feb 1, 2023 · 1 comment
Closed

Updates overlap in UI #71

mattgabor opened this issue Feb 1, 2023 · 1 comment

Comments

@mattgabor
Copy link

mattgabor commented Feb 1, 2023

I have created a sample project to test this package out - the only custom code is pictured below. Whenever I make a change to the text both the previous and new text overlap each other - the old view is not being cleaned up properly

I am using the following to force a reload:

extension UIViewController {
    @objc func injected() {
        viewDidLoad()
    }
}

image

Version 4.9.6
MacOS Ventura 13.1 (22C65)
Xcode 14.2.0

@johnno1962
Copy link
Owner

Hi, You probably need to restructure your code into a separate confirgureView() method which is called from the injected() method that removes all subViews before adding the label again otherwise they will accumulate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants