Skip to main content
162
results
Andrew Fletcher
What to do when you want to filter a Realm object, using NSPredicate in SwiftUI or in Swift.   Applying the filter to a simple condition in one line let exists = realm.objects(ExampleObj.self).filter(NSPredicate(format: "uid = %ld", uid))Creating a variable predicate that will be injected as a condition let predicate = NSPredicate(format: "uid = %ld AND nid = %ld",uid,nid) let exists = realm.objects(ExampleObj.self).filter(predicate)Finally, managing the predicate as an array by...
Andrew Fletcher
I had an instance where I needed to move content from a plist to the server...
Andrew Fletcher
Registering a user via REST is an important process particularly when the...
Andrew Fletcher
As a process I apply patches locally first, then using git upload the update(s)...
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,...
Andrew Fletcher
While the Drupal site has a great outline of the steps to follow, I found we...
Andrew Fletcher
First transfer the drupal-8.8.x.tar.gz file to your directory Via your ssh...
Andrew Fletcher
While I have posted an article about how to POST an image using REST in Drupal...
Andrew Fletcher
In Drupal 8.x hiding the subject line is a quick task. In the admin area of your...
Andrew Fletcher
You have been working hard on getting comments being added (POST) through REST in Drupal 8.  However, now you are seeing the following Assigning the wrong user against a new comment - and most likely the new comment is being assigned to the site admin.   The error here is related to the _embedded uuid. What to do You need to check that you have the correct uuid for both the entity_id and the uid entity_id -...
Andrew Fletcher
For others that have spent countless hours getting this to work and are...