I'm trying to call an API and populate Data into List in SwiftUI, I'm a beginner in SwiftUI and I'm struggling with the error mentioned. I think there ...
I'm trying to call an API and populate Data into List in SwiftUI, I'm a beginner in SwiftUI and I'm struggling with the error mentioned. I think there ...
Hello I went across protocols and delegates in course recently (iOS dev guy in production here). I tried to apply this at my simple app, which basica ...
In SwiftUI I have a struct that want to hold data of the View. Let's say there is a View that user can create a recipe in it. It has a text field to t ...
I am trying to create a class that it runs a Firebase requests and saves the result in variables. Then from different views I access the variables. Ea ...
I am trying to add and instance of Class Wave to my instance of class WaveList I don't know why I am unable to simply append this within my Test File ...
I have a question about something simple that works in Playground but not in a Project: (Playground code below) In the project where the class is in ...
I have a class in Swift: class myClass { var theBool : Bool init(theBool: Bool) { self.theBool = theBool } init() { ...
Im accessing a variable inside a class of my pod. The members inside the class have internal access modifier. But cannot able to access the tenantURL ...
In this simple game there is a class Fighter whose purpose is to make two fighters fight. The one who looses health below 0, it looses the game. In o ...
My question here is that what is the difference between both the methods declared? Is method def a static method? extending class to use pr ...
I have a simple class in Swift 4 like this: And I want to (in one line) populate a variable with an instance of this object. I tried to do it like ...
i have a problem. I made swift custom class test.swift and want to add a sprite from this Class to the the GameScene.swift This is my custom Class ...
Let's say I have a color model: In my view file, I add some view-details to my Color model. These details aren't model specific, they're view speci ...
Have this class which is never used directly, only inherited: How do I define a generic static singleton default here? - So I can: The only thin ...
I am from Objc background & new to swift. What does this comment means "/// Used in a static manner" DO I really need this init()? In the wh ...
In the following code, why is myRide.drive() printing a class Car instead of "Driving at 200"? I understand that the class Futurecar is inheriting ...
I've got a Graph class which is an UIView and I'm initializing it inside mainVC.swift: Now I would like to access function inside instance of the c ...
I am trying to send data to a .NET web service that accepts three parameters whose types are (String, String, QBUser Class). In Javascript, I would se ...
Say I have 2 subclasses of a class but would like to pass either of those subclasses to a function and determine its type within the function how woul ...