Learn Courses My Dashboard

How to dismiss a swiftUI view that is connected to a Storyboard View

Hi, I am a beginner trying to learn iOS development. I have generated a view using Storyboard and have connected it to a SwiftUI View using UIHostViewController. I want to create a close button in my SwiftUI view which should go back to the Storyboard view. After searching I found the usage of dismiss (see below) but this worked between two SwiftUI views but not between a Storyboard view and a SwiftUI view . Please help me solve this issue.

**@Environment(.presentationMode) var presentationMode