'Updating the SwiftUI Kingfisher Cache

In my Twitter clone I have come across a problem with updating the old cache of Kingfisher Image item. As you can see in the screenshots, the "EditProfile" button opens up the "EditProfile sheet". Where the changes are made to the database. However, for the new image to be reflected I get to get out of the Profile and come back later for a reload. How can I solve this problem? I already use the following code onDismiss of the sheet

KingfisherManager.shared.cache.clearCache()

The Profile Page

Edit Profile Sheet



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source