I want to swipe a uiView like we use in tab view controller in SwiftUI but while using storyboard, if we use tab view controller whole screen is been swiped but i have to swipe only half of the screen and perform some functions there. i am attaching screenshot of it for better understanding:
I want this type of response. With the button Add New Group I am adding a new group, and by swiping I want to see my secondary groups.

add codes in viewDidLoad()
detect next page or previous page.