Skip to main content
43
results
Andrew Fletcher
Working with buttons To begin, what is a button in SwiftUI? struct MainView: View { var body: some View { Button(action: {}) { Text("My button in SwiftUI") } } }This code snippet will create a view that contains a button. That button will display some text My button in SwiftUI that when tapped fires off a blank action.  However, if you are like me, I don't have a need for the default type of functionality.  The SwiftUI button needs to do more!....
Andrew Fletcher
Working on a new CentOS 7 server, Node wasn't installed.  You can...
Andrew Fletcher
When those simple annoyances are too frustrating!  Yes we have all been...
Andrew Fletcher
I started out with a simple task... install Tailwindcss.  What unfolded is...
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
After creating a new view with a @Binding string as follows struct EditRival:...
Andrew Fletcher
Building a contact list using SwiftUI has many challenges. One challenge is...
Andrew Fletcher
What to do when you want to filter a Realm object, using NSPredicate in...
Andrew Fletcher
I had an instance where I needed to move content from a plist to the server database.  To achieve this step, I added a few lines of code where the plist was called and added a call to the API so the data would be on the server. The original code appeared as: class ContactsSource { static var contacts: [Contact] { let data = try! PlistLoader.array(fromFile: "ContactsDB", ofType: "plist") return data.compactMap { Contact(dictionary: $0) } } }I needed to access...
Andrew Fletcher
I'm going to take you on a journey about adding a gradient tint to a...
Andrew Fletcher
Creating a new SwiftUI project is a quick process.  There are already...