Mobile iOS app automation with app login via Settings

Hi Team,

I am working on automating an iOS app on Simulators. The app needs to be logged-in mandatorily for using/browsing. To login, i need to go to Settings >> App >> and then login >> and then use the app. How to achieve this case using Appium. Please help. I need to present a demo in a weeks time.