The best programming blog.

Covering a wide array of programming topics.

Install url redirect plugin on WordPress site.

Go to WordPress admin dashboard. Select Plugins and click Add New plugin button Search for “redirect” and select Redirection plugin. Click the Install Now button and after installing click the Activate button. Click Start Setup and follow the instructions. It will install few tables to manage the redirects. You are done with installing the redirect…More

How to find all seo links in Yoast SEO on WordPress site

You can find all your existing links set up by Yoast SEO on your wordpress site with the help of mysql. Connect your WordPress site mysql database. Run the following command: The output will return all the existing links set for your WordPress site. The SQL query “SELECT * FROM wp_yoast_seo_links” is used to retrieve…More

Remove old unsued simulators in Xcode

Follow the below mentioned steps to remove old unused simulators in Xcode on MAC. Click the Apple icon at the top left of your MAC. Select the Storage tab and click Manage button: Select the Develop menu. The right hand pane will list the simulators installed on your MAC. Choose the simulator you want to…More

How to change Apple ID in Xcode

Changing the Apple ID associated with your Xcode account is easy. Follow the steps to change/update Apple ID in XCode on your mac’s machine. First, open Xcode and go to the Xcode menu in the top left corner of the screen. Then click on Preferences Next, click on the Accounts tab. Follow the below screenshot…More

Key shortcut to hide preview of SwiftUI code

You can use the OPT + CMD + ENTER as the key shortcut command to hide the preview of your current SwiftUI code in Xcode: This keyboard shortcut allows you to switch between viewing the SwiftUI code and a live preview of the code. SwiftUI code appears in full-screen mode when the preview is hidden,…More

Key shortcut to open preview of SwiftUI code

You can use the OPT + CMD + ENTER as the key shortcut command to show the preview of your current SwiftUI code in Xcode: To open the preview window for your current SwiftUI view, use this shortcut. The preview window lets you see how the user interface will look and function in a live…More

NavigationStack is only available in OS 16.0

Error: ‘NavigationStack’ is only available in 16.0 while building the swift ui project. Solution: The solution to fix the above issue is to change the minimum deplyment target to 16. Select your project. Click General tab. Select your target. Change the Minimum Deployments dropdiown to 16.More

Swift URL Missing argument label ‘string:’ in call

The error “Missing argument label ‘string:’ in call” is caused when you try to create a URL object in Swift without specifying the argument label for the string parameter. Solution for Missing argument label ‘string:’ in call in URL call is to replace it to Above, string: is the argument label for your string parameter…More

Swift Expected String value but found null instead

When you encounter the error “Expected String value but found null instead” in Swift, it typically means that you have attempted to assign a value of type “String?” (an optional string) to a variable or constant of type “String” (a non-optional string). The solution for Expected String value but found null instead issue is to…More