Skip to main content
33
results
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
What to do when you want to filter a Realm object, using NSPredicate in...
Andrew Fletcher
Today while in Terminal, I ran a regular script pod update.  However, this...
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...
Andrew Fletcher
How to apply a gradient tint over a background image? Set the background image The first step is to set the background image.  I wanted the image to cover the entire device, so scale aspect fill will be required. self.backgroundImage = UIImageView(image: UIImage(named: "bgkMain")) self.backgroundImage.contentMode = .scaleAspectFill self.view.insertSubview(self.backgroundImage, at: 0)  Set the tint layer With the background in place, next construct the tint layer.  To make...
Andrew Fletcher
For detailed notes regarding how to add custom fonts to your iOS app see...
Andrew Fletcher
Working on formatting the date in Xcode, and you come across the situation where...
Andrew Fletcher
Adding a floating decimal point for n number of places is quite easy to achieve....
Andrew Fletcher
Whatever you are coding - code clarity is your goal. Before you scream and...
Andrew Fletcher
To create a .pem file, is quick once you have your .p12 certificate.  I won't go through the process regarding p12 file generation as there are many sites that outline these steps.  If you cannot find a site that outlines this make a comment below and I'll point in the right direction. Open the terminal and go to the path where you save the apns-cert.p12. where and follow the below command to generate the .PEM file. The command below depends on the following two elements: Name of the...
Andrew Fletcher
I had the issue where I needed to filter an array list by a specific column....
Andrew Fletcher
A handy resource list of fonts for iOS: iOS Font List -...
Andrew Fletcher
During the process of building the app, there are warnings about the code....
Andrew Fletcher
https://github.com/kylebrowning/waterwheel.swift After a short amount searching...