Thursday, October 29, 2026
HomeiOS Developmentios - Information of listing on earlier web page not refreshing in...

ios – Information of listing on earlier web page not refreshing in Swiftui

[ad_1]

The UI code of my listing is as follows:

.
.
.

{
      Textual content("Check " + String(questionModel.testId))
        .foregroundColor(
             isExamPassed(
                 testNameAndtestId: self.chosenExamName + String(questionModel.testId)))
}

The isExamPassed perform returns a coloration based mostly on the success of the examination.

My challenge is that this:

I make adjustments to a web page and are available again with this code: presentationMode.wrappedValue.dismiss()

And the isExamPassed() perform returns a unique coloration worth.

Nevertheless, there isn’t a change within the colours within the listing. I assume as a result of it kills the entrance web page, it reveals the previous web page with out updating it.

Once I change the web page by giving a Navigationlink(vacation spot:) {}, it reveals a ahead animation regardless that I come again. Apart from, I assume this is not the most effective answer anyway.

Do you may have a suggestion for an answer? Thanks from now.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments