Skip to main content
25
results
Andrew Fletcher
The purple warning notification of annoyance recently came my way!  I received the following warning: Publishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:)) on model updates.  What was happening? The functionality of the code uses URLSession to get a user's name via API and the display is simple piece that initially message of Hello {user}. The view code consists of: MainView : View Main...
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
Installing Laravel on an Apache server was going to be a no fuss process said no...
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 having multiple lists displayed on the one screen.  For example, known contacts using your app against contacts on the phone.  Initially, I tried the following code SearchBarView(text: $searchText, placeholder: "Type here") List { Section(header: ContactListHeader(listTitle: "rivals list")) { ForEach(self.userData.rivals.filter{ self.searchText.isEmpty ? true : $0.name.lowercased() ...
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...