How do I make A EULA (End Users License Agreement)

How do I make a EULA that in my app that requires the user to check "I Agree" in my app? My app got rejected because it needed a EULA that required the user to check I Agree. I really don't know how to do this. I am a new swift developer.
Please reply ASAP.
Maybe some help for you here:

https://stackoverflow.com/questions/14825467/how-to-exit-an-ios-application-when-license-agreement-is-not-accepted-by-user

After you write your own EULA (google is your friend for examples), display it to the user in the app, then take action depending on if they accept or refuse.

Where that code goes and how it looks depends on your skills, your app design, type etc. Suggest you study apps similar to yours in the App Store for UI hints.

Good luck.
How do I make A EULA (End Users License Agreement)
 
 
Q