|
I am completely stuck with this! In desperation I have copied and pasted several examples from the web with a func in them and none have worked. I should explain that I am an absolute newbie and to add to my disability I am doing this on an iPad in Playgrounds. Can someone please pick the bones out of this and tell me where I am going wrong. The Error: Expected 'func' keyword in instance method declaration is at the end of this code. Also I have // a couple of questions about my use of func (See first two funcs) //
Kind Regards Guy MacDonald |
|
You want to call the joinCards() when the view appears? , if yes add at the bottom of the Vstack
and remove it from where you have it. |
|
Thank you That has got rid of the error but I still have a problem. The App (in Playgrounds) is now crashing (BST Transaction Error (1):....Process failed to launch....) I will try trouble shooting my code which I suspect is flawed! Thanks again Guy |
|
Hello again It seems that..... .onAppear { } is causing the App to crash. Looking for suggestions for what I can put inside .onAppear to test it without any of my code. Thanks again Guy |
|
Hello again I feel very silly!! I didn't syntax it correctly!! .onAppear(perform: { joinCards() }) Is what it should have been!! Thanks again Guy |
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.