Xcode What's new in Xcode 14? Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. Xcode 14 includes everything you need to create amazing apps for all Apple platforms. Xcode 14 supports developing apps for iOS 16, iPadOS 16, tvOS 16, watchOS 9, macOS 13. Xcode...
Tips Xcode 11.5 crash on launch on macOS 11 Big Sur This is a known issues. Xcode versions prior to Xcode 11.5 crash on launch on macOS 11. Curretly there is one workaround for this. You've to run the following command in the Terminal app to avoid crashes when starting Xcode: defaults write com.apple.dt.Xcode DVTDisableMainThreadChecker 1 Now...
Xcode What's new in Xcode 12? [Updated for 12.1, 12.2 and 12.3] Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. Xcode 12 includes everything you need to create amazing apps for all Apple platforms. Xcode 12 also builds Universal apps by default to support upcoming Mac with Apple Silicon. Xcode 12...
Tips How to Explore Private Framework with iPad Swift Playground App? Swift Playground [https://apps.apple.com/us/app/swift-playgrounds/id908519492] app is the best way to explore iOS private APIs. You can browse iOS Private Headers for latest version from here. [https://developer.limneos.net/]....
Xcode Use UIRefreshControl in any UIScrollView(UICollectionView, WebView) Apple documentation shows us how we can use an UIRefreshControl in an UITableViewController, but do you know, we can add it to any UIScrollView ? let refreshControl = UIRefreshControl() refreshControl.addTarget(self, action: #selector(handleRefresh), for: .valueChanged) scrollView.addSubview(refreshControl) In a similar way, we can add UIRefreshControl to a WKWebView. let...
Tips Generate Strongly-Typed Swift/Obj-C Data Models directly from JSON Quicktype [https://app.quicktype.io] generate Strongly-Typed Swift/Objective-C Data Models from JSON, Schema, and GraphQL. You just need to paste your JSON string in left side text box. Generated models code has comments at the top with a code sample that shows how to convert a JSON string to...
Tips How to create a Strongly Typed Info.plist? You can easily access info.plist strongly typed by create a struct this way - struct InfoPlist { static func get(for key: String) -> T? { return Bundle.main.infoDictionary?[key] as? T } static subscript(key: String) -> T? { return get(for: key) } } Now you can use above InfoPlist...
Tips An easy way to maintain UserDefaults key You can use #function literal to get the property name as UserDefault key. In the following example, #function will get replaced by accessToken. Be aware, changing the property names may break functionality for the existing users. extension UserDefaults { var accessToken: String? { get { return string(forKey: #function) } set { set(newValue, forKey:...
Tips The xed - Xcode Text Editor Invocation Tool If you are in your Xcode project folder and your project has both a workspace( .xcworkspace) and a project(.xcodeproj) the file then you can use following command to open workspace in Xcode from your terminal - xed . If your project only has a project(.xcodeproj) the file then the...
Xcode Where to find Project Build Settings Documentation? Do you know Xcode's project build setting has documentation? Just press ⌥ (option) + Double Click for complete documentation or open Quick Help Inspector....
Xcode How to Add Function Documentation in Xcode? You can use ⌥ + ⌘ + / (option + command + ) to add function documentation....
Tips How to clean the iOS app launch screen cache? You might have noticed when you tried to change something in the launch screen on the iOS application, you still see the old launch screen. Because the system caches launch images and it's not cleared even after deleting the application. For cleaning the launch screen, all you have to do...
Tips How to do Git Blame in Xcode? If you work with a team, do you ever need to know who added this horrible bug? Place the cursor on the offending line, right click to open the contextual menu, and Click on Show Last Change For Line....
Tips How to Open a File in Specific Xcode Position? In Xcode, you can open a file in various ways, you can open a file in the standard editor, in a new or existing assistant editor, in a new or existing tab, or in a new window. Here's how you can decide about this. When you clicking on a file...
Tips Xcode - How to Quick Jump on Specific Line Number? You might know, command + shift + o opens the "Open quickly" dialog, where you can quickly find and open files that contain the text you enter. But, If you type a line number after a file name in then open dialog jump straight to the that line number of file. Like,...