developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
57
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
•
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'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
•
How to apply a gradient tint over a background image?
Set the background...
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
•
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 I came across Kyle Browning Waterwheel Pod. I flipped down to installation and there it is in three steps. Super. But wait. Step one, CocoaPods. What are pods?
https://cocoapods.org/
Easy to follow, in no time cocoapods are added.
Using terminal you need to initialise the pod to the directory where the Xcode project is located.
cd ~/Path/To/Your/Project/
pod init pod update
This...
Andrew Fletcher
•
If you have this error, the core issue is the dyld issue.
dyld
dyld is a...