How to get app version and build number in iOS using Swift?
Hello everyone! I'm new to iOS development, writing my first app in Swift. I've encountered a task: I need to display the current app version and build number on the "About" screen in settings. \n\nI tried to do this through Info.plist, but I don't quite understand how to correctly extract this data. Here's my current code that doesn't work:\n\n```swift\nlet version = Bundle.main.infoDictionary?["CFBundleShortVersionString"]\nlet build = Bundle.main.infoDictionary?["CFBundleVersion"]\nprint("Version: \\(version), Build: \\(build)")\n```\n\nThe problem is that the console outputs Optional("1.0") instead of just "1.0". I understand that this is related to optional values, but I don't know how to correctly unwrap it. Also, I've read that in newer versions of iOS there may be changes in access to I