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

Subviews are missing #369

Open
rakuyoMo opened this issue Aug 14, 2024 · 2 comments
Open

Subviews are missing #369

rakuyoMo opened this issue Aug 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@rakuyoMo
Copy link
Contributor

rakuyoMo commented Aug 14, 2024

func setUI(reload: Bool) {
subviews.forEach { $0.removeFromSuperview() }

The beginning of this method removes all subviews.

addSubview(timelinePage)
timelinePage.isPagingEnabled = style.timeline.scrollDirections.contains(.horizontal)
reloadEventViewerIfNeeded()
}

But if reload is false, only timelinePage is added back, and topBackgroundView is lost.

Is this intentional? Or am I using it wrong?

@rakuyoMo rakuyoMo added the bug Something isn't working label Aug 14, 2024
@rakuyoMo
Copy link
Contributor Author

rakuyoMo commented Aug 16, 2024

Additional note: You can see this problem if you call updateStyle(_:) and pass it a Style that haven’t modified.

@kvyatkovskys
Copy link
Owner

@rakuyoMo Thank you for the issue I'll check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants