Skip to main content
85
results
Andrew Fletcher
It is really simple to switch users in Ubuntu or any other Linux distribution using the terminal, iTerm2 or your go to shell program. All you need to do is to know the username and its account password and you can switch users with su command: su another_usernameYou’ll be asked to enter the password of the user you want to switch to.   List all the users on Linux Let’s say you want to create a sudo user in Linux. Probably, the very first thing to know is how to know what users are in my...
Andrew Fletcher
Whilst working through an edit person view in a SwiftUI project, I experienced...
Andrew Fletcher
When managing a navigation title in Swift, you will have trodden down the path....
Andrew Fletcher
Struggling to hide the SwiftUI separators in a List or Form?    The...
Andrew Fletcher
Core Data - customising our data model When you are using Core Data, and let's...
Andrew Fletcher
In SwiftUI, has made creating a list of item very easy.  If you have an array containing the names of customers, these names can be displayed through the following code: struct ContentView: View { let customers = ["Sarah","Vinodh","Dimitry","Lata"] var body: some View { List(customers){customer in Text(customer) } } }As you will have noticed, this is a static list.  Meaning that any changes to the customers array will not cause...
Andrew Fletcher
I attempted the run command and the response I had was succeeded, but then...
Andrew Fletcher
Working with buttons To begin, what is a button in SwiftUI? struct MainView:...
Andrew Fletcher
When those simple annoyances are too frustrating!  Yes we have all been...
Andrew Fletcher
The purple warning notification of annoyance recently came my way!  I...
Andrew Fletcher
I'm currently working on a project that requires login, register, forget password functionality in SwiftUI.  As I'm developing the code, I came across a great resource for validating an email address with Regex: http://emailregex.com/ In the end, I leveraged the worked produced on https://stackoverflow.com/questions/25471114/how-to-validate-an-e-mail-address-in-swift The code used: extension String { var isValidEmail: Bool { let name =...
Andrew Fletcher
iOS localization on the fly If you have added languages to your app......
Andrew Fletcher
When you are in the status report of the admin area are you finding the...
Andrew Fletcher
The magically descriptive error 401 Forbidden "message": "Access...
Andrew Fletcher
If you are like me you probably have searched for clues to and found little......