Skip to main content
41
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
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...
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: View { @Environment(\.presentationMode) var presentationMode @EnvironmentObject var realmPerson: RealmPersons @Binding var uid: String  The previews struct had an error with the var previews struct EditRival_Previews: PreviewProvider {   //... Initial code ...// static var previews: some View { EditRival() .environmentObject(RealmPersons()) }The error was Cannot convert value of...
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...
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 thousands of sites outlining how to do these steps.  Rather than repeat this steps at the top of each article, we will refer to this article to get you across the line if you don't know or need a refresher. Step 1 Open Xcode and either click Create a new Xcode project in Xcode’s startup window, or choose File > New > Project. Step 2 In the template selector, select iOS as the platform,...