How to convert Dictionary to Json with Swift
Oct 6, 2020, 1:37 PM
It is a common task to convert a Dictionary to JSON. In this tutorial I will show you how you can do just that, luckily for us, Swift makes this incredibly easy.A quick note before we get started, the dictionary's value needs conform to...
How to replace characters in string with Swift
Sep 30, 2020, 3:31 PM
In this tutorial you will learn how to replace characters in a String using Swift. We will be using the following methods replacingOccurrences, replacingCharacters as well as replaceSubrange. Replace characters with replacingOccurrences...
How to screenshot or record a video in the iOS simulator
Sep 26, 2020, 8:50 AM
Taking a screenshot or recording a video of the iOS simulator can sometimes be useful, whether it is for the App Store or maybe for some internal use case that the company or your team has. In this tutorial I will show you how you can take...
How to tell what version of Swift Xcode is using
Sep 23, 2020, 8:44 AM
Sometimes we need to check what version of Swift we are using, or, more correctly what version of Swift Xcode is using. There are two ways that we can do this, one is more accurate if you want more than just the major version.Finding Swift...
How to save a file locally with Flutter(Image, Text)
Sep 17, 2020, 11:27 AM
In this tutorial you will learn how you can save a file locally. Flutter has a built in type called File which will allow us to read and write to a file locally. To make our lives easier we do need to add a package, the path_provider...
How to save a file locally with Flutter(Image, Text)
Sep 17, 2020, 11:27 AM
In this tutorial you will learn how you can save a file locally. Flutter has a built in type called File which will allow us to read and write to a file locally. To make our lives easier we do need to add a package, the path_provider...
How to remove debug banner with Flutter
Sep 11, 2020, 6:46 AM
In this tutorial you will learn how to remove the debug banner from your Flutter app. I find this debug banner to be quite annoying but luckily there is a one line fix for it. To remove the debug banner set the following property on your...
How to remove debug banner with Flutter
Sep 11, 2020, 6:46 AM
In this tutorial you will learn how to remove the debug banner from your Flutter app. I find this debug banner to be quite annoying but luckily there is a one line fix for it. To remove the debug banner set the following property on your...
How to make SwiftUI view fill width or height of screen
Sep 10, 2020, 9:46 AM
In this tutorial I will show you how to make a view fill the width or height of the parent view or fill the screen. It is often required that a view fill a space, whether it is width, height or both. Luckily for us SwiftUI makes this very...
How to make SwiftUI view fill width or height of screen
Sep 10, 2020, 9:46 AM
In this tutorial I will show you how to make a view fill the width or height of the parent view or fill the screen. It is often required that a view fill a space, whether it is width, height or both. Luckily for us SwiftUI makes this very...
How to get index and value from for loop with Swift
Sep 10, 2020, 7:15 AM
Sometimes I find that I need to get both the index and the value when I am looping through an array. In this tutorial I will show you how to get both.I have the following array of programming languages:let languages = ["Swift", "Kotlin",...
How to get index and value from for loop with Swift
Sep 10, 2020, 7:15 AM
Sometimes I find that I need to get both the index and the value when I am looping through an array. In this tutorial I will show you how to get both.I have the following array of programming languages:let languages = ["Swift", "Kotlin",...
Change button color on press with Flutter
Sep 7, 2020, 7:09 AM
In this tutorial I will show you how you can change the color of a button when a user presses it. To demonstrate this I will be using a RaisedButton.Toggle button color change on pressclass _MyHomePageState extends State<MyHomePage>...
Change button color on press with Flutter
Sep 7, 2020, 7:09 AM
In this tutorial I will show you how you can change the color of a button when a user presses it. To demonstrate this I will be using a RaisedButton.Toggle button color change on pressclass _MyHomePageState extends State<MyHomePage>...
How to save a file from a URL with Swift
Aug 25, 2020, 12:56 PM
In this tutorial I will show you how you can download a file from a given URL and then save it locally using Swift. Setting up the local file URLThe first thing that I want to do is to setup the local file url. In this tutorial I will
How to save a file from a URL with Swift
Aug 25, 2020, 12:56 PM
In this tutorial I will show you how you can download a file from a given URL and then save it locally using Swift. Setting up the local file URLThe first thing that I want to do is to setup the local file url. In this tutorial I will
How to store a date in UserDefaults with Swift
Aug 25, 2020, 9:35 AM
UserDefaults can be a useful tool to store small amounts of information. In this tutorial I will show you how you can store a Date in UserDefaults using Swift.Storing a date in UserDefaultsBelow is the code that we will use to save the...
How to store a date in UserDefaults with Swift
Aug 25, 2020, 9:35 AM
UserDefaults can be a useful tool to store small amounts of information. In this tutorial I will show you how you can store a Date in UserDefaults using Swift.Storing a date in UserDefaultsBelow is the code that we will use to save the...
How to save an image to file with Swift
Aug 24, 2020, 2:28 PM
There are numerous reasons to save an image to a file using Swift. In this tutorial I will show how you can do that with just a few lines of code. Before we get started I want to add a method that we will use in both saving of a
How to save an image to file with Swift
Aug 24, 2020, 2:28 PM
There are numerous reasons to save an image to a file using Swift. In this tutorial I will show how you can do that with just a few lines of code. Before we get started I want to add a method that we will use in both saving of a
How to save data to file with Swift
Aug 24, 2020, 2:28 PM
There are many reasons that we might need to save data to a file as an app developer. We might need to save an image, or text or something else. In this tutorial I will show you how we can save a string to a file, but this can be
How to save data to file with Swift
Aug 24, 2020, 2:28 PM
There are many reasons that we might need to save data to a file as an app developer. We might need to save an image, or text or something else. In this tutorial I will show you how we can save a string to a file, but this can be
How to save/write Json to file with Swift
Aug 24, 2020, 2:28 PM
In this tutorial I will show you two methods that you can use to write JSON data/string to a file using Swift. Save JSON string to fileSaving a JSON string will be the same as saving any other kind of string. Since Swift will see it as a
How to save/write Json to file with Swift
Aug 24, 2020, 2:28 PM
In this tutorial I will show you two methods that you can use to write JSON data/string to a file using Swift. Save JSON string to fileSaving a JSON string will be the same as saving any other kind of string. Since Swift will see it as a
Python - list all files starting with given string/prefix
Aug 18, 2020, 1:28 PM
In this tutorial I will show you how to list all files in a directory where those files start with a given string/prefix.Find files in the current directoryTo loop through the provided directory, and not subdirectories we can use the...
Python - list all files starting with given string/prefix
Aug 18, 2020, 1:28 PM
In this tutorial I will show you how to list all files in a directory where those files start with a given string/prefix.Find files in the current directoryTo loop through the provided directory, and not subdirectories we can use the...
Python - list all files in directory and subdirectories(4 loc)
Aug 18, 2020, 1:27 PM
Getting a list of all files in a directory and its subdirectories can be quite a common task, so, in this tutorial I will show you how you can do this with 4 lines of code using os.walk. Below you can see how we can recursively loop...
Python - list all files in directory and subdirectories(4 loc)
Aug 18, 2020, 1:27 PM
Getting a list of all files in a directory and its subdirectories can be quite a common task, so, in this tutorial I will show you how you can do this with 4 lines of code using os.walk. Below you can see how we can recursively loop...
How to Remove CocoaPods from your Project
Aug 16, 2020, 8:48 AM
In this tutorial I will show you how to you can remove Cocoapods from your project. Removing Cocodpods is extremely easy to do all we need to do is to install two Ruby gems:sudo gem install cocoapods-deintegrate cocoapods-cleanNow that we...
How to Remove CocoaPods from your Project
Aug 16, 2020, 8:48 AM
In this tutorial I will show you how to you can remove Cocoapods from your project. Removing Cocodpods is extremely easy to do all we need to do is to install two Ruby gems:sudo gem install cocoapods-deintegrate cocoapods-cleanNow that we...
How to rename an Xcode project
Aug 15, 2020, 9:10 AM
Renaming a project can be a common task. You could start with a name for your project and then during the development process you decide that you want to rename the project. Unfortunately Xcode does not come with built in functionality to...
How to rename an Xcode project
Aug 15, 2020, 9:10 AM
Renaming a project can be a common task. You could start with a name for your project and then during the development process you decide that you want to rename the project. Unfortunately Xcode does not come with built in functionality to...