Prevent External Monitor from Sleep when Macbook AC Adapter Unplugged I was facing this issue on my Macbook Pro in macOS Monterey. While I'm connected to the external monitor and the power cord is unplugged then the connected external monitor...
Download WWDC, Tech Talks, and other videos up to 16 times faster Downloading WWDC Videos from the Apple Website is very slow and during WWDC month it's terribly slow. So, to solve this problem here is one open-source tool [https://github.com/...
How to change playback rate of WWDC Videos? One of the missing features from the WWDC video player is it doesn't have playback rate control. So, here is a simple script to change the playback rate of WWDC...
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...
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...
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,...
How to create empty commits to test CI & CD or anything else? Sometimes we need to make empty commits on some testing branch so that we can trigger various kinds of things like Jenkins build etc. So, here the way to make...
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...
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?...
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...
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...
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....
How to Add Function Documentation in Xcode? You can use ⌥ + ⌘ + / (option + command + ) to add function documentation....
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...
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...