Skip to main content
19
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
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...