|
Hi, This is my Menu i'd like to add to my list:
but the problem I am having is that my struct is like this:
How do I sort by Creator of my API call which is a string? Or By Date which is a Date type but It is formatted as you can see in the API below. and the diffilcuty?
Best, Imran |
|
|
|
Hi, So I tried that but the problem I am now having is that the function cannot be a found in scope. function added to Recipe list view to bring in the function from the RecipeAPI:
Menu:
Thanks again... |
SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo. Sponsor Hacking with Swift and reach the world's largest Swift community! |
|
|
|
|
Hi, So I tried that and this is the error I got:
on all the buttons. Best, Imran |
|
|
|
It then throws this error:
|
|
|
|
Hey, This error presists on all of them:
|
|
Hi Imran, In your code that you have given us you have
and
So you need to gives us that. Where about is the error message? Does the |
|
Hi, So It's for my recipesAPI It has the @MainActor tag and I have done the above init to the view. This is the error I am getting:
on all the buttons on the Menu we created. |
|
Sorry I am very confused about how the Try removing the |
SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.