|
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... |
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS. 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 |
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
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.