Sometimes we have to calculate the distance between 2 locations when we have coordinates latitude and longitude for those locations. This article will discuss how you can calculate a straight line distance between 2 locations 2 programming languages, JAVA & Swift. 1. Code to Find Distance in JAVA In JAVA we don’t have any builtin […]
Get Current Location in Swift IOS
Apple provides the CoreLocation Framework to fetch the user’s current location through GPS. In the following article its explained how to get current location in Swift in the form of Latitude & Longitude. Just copy the following code in your ViewController, rest of the work will be done by it. The working of the code […]
Save & Load Image From Documents Directory in Swift
It’s a common requirement in Apps that we need to save images in the phone’s storage. For example, you download an image from your server and want to save it for future use. In IOS you can use Documents Directory for that purpose. Documents Directory is a slice of storage dedicated to each App where […]
Method to Convert Hexadecimal Color Code into UIColor Swift 5
It’s a common requirement that we have to convert HTML hexadecimal color code into UIColor in swift. Following is a utility method that you can use for that purpose. This code is written in swift 5. In this method, you need to pass Hex String as a parameter and it will return the UIColor object […]
Xcode Error: Multiple commands produce
“Multiple commands produce” is a common Error in Xcode when we build our App. In this article, I am going to show you the simplest solution to solve it. Reason of Xcode Error: Multiple commands produce There can be multiple reasons for this error. Sometimes upgrading the Xcode version causes this error. Or sometimes adding […]
Action Sheet in IOS & its Troubleshooting
Action Sheet is a native IOS component to show a multi-option picker in IOS Apps. I have noted that sometimes it works well in iPhones but causes crash in Ipad. In this article, I will show you the best way to show the action sheet in IOS which works for both, iPhone & iPad. Code […]
Fetch Nearest Places in React Native Using Google Places API
It’s a common requirement in Apps to fetch nearest Places using Google Places API. In this article, I will explain how to fetch the nearest places in React Native using google places API. You can use this method to fetch places for both Android & IOS Apps. Method to Fetch Nearest Places in React Native […]
Preload Images in React Native – Android & IOS
It’s a common requirement in the Apps to load images from remote URLs. React Native Image component automatically keeps images in the cache for future use and fast loading. But the very first time it can take time to download an image from a remote URL. Sometimes it looks weird when the image comes after […]
Hideable View in React Native – Show/Hide View & It’s Content
As we know, there is no direct way to Show / Hide or change the visibility of a View in React Native. Here I have created a Custom component Hideable View in React Native. You can use this View component in place of the Native View component. Or you can even wrap your Any View, […]
ld: framework not found Alamofire clang: error: linker command failed with exit code 1
Recently, I came across this “linker command failed with exit code 1” error in my Xcode when I tried to archive my project. Although the App was running perfectly when I run it on the simulator or even on the physical device. The error is the following. After searching a lot on Google I found […]