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

BUGFIX: ObservedObject changed to StateObject #37

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

vilimas
Copy link
Contributor

@vilimas vilimas commented Aug 22, 2024

I noticed that .showBillboard(when: $showRandomAdvert) will not work if showRandomAdvert is the @Published variable in the ObservableObject class.

Changing @ObservedObject to @StateObject in AdvertisementModifier will solve this bug.

@hiddevdploeg hiddevdploeg merged commit 8530757 into hiddevdploeg:main Nov 20, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants