How to get device set time in swift/ios? : <p><a href="https://i.stack.imgur.com/QiBX4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QiBX4.png" alt="enter image description here"></a></p>

<p>I want to get time, which user sees in their status bar if they change the time to 24-hour format, or manually select some other timezone with or some other time in Settings, it should be changed in my app as well.</p>
