sabbath-school-lessons icon indicating copy to clipboard operation
sabbath-school-lessons copied to clipboard

Network Call issue in SwiftUI App

Open kevoniori opened this issue 2 years ago • 1 comments

Not sure why this happens, but whenever I try to use the "quarterly_group" data from the JSON, nothing displays in my View even if I'm not using the parameter. I can see from my console that the network call is successful, but nothing displays. I have a screenshot of my data model with and without the "quarterly group variables" & also a screenshot with the results. When I comment it out, the view shows my quarterly lists perfectly, but when I try to include it, nothing shows. What I really want to accomplish is filter out the list to only include Quarterlies from the "Standard Adult" Group

Data Model with the quarterly_group variable

Screen Shot 2022-10-20 at 1 43 05 PM

Result in the View

Screen Shot 2022-10-20 at 1 43 15 PM

Data Model with the quarterly_group variable Commented out

Screen Shot 2022-10-20 at 1 50 18 PM

Result in View Screen Shot 2022-10-20 at 1 43 39 PM

My network call code Screen Shot 2022-10-20 at 1 43 54 PM

kevoniori avatar Oct 20 '22 18:10 kevoniori

Upon further testing, it seems as if there is a problem when it comes to using nested objects, or am I doing something wrong?

kevoniori avatar Oct 20 '22 20:10 kevoniori

@kevoniori have you checked the iOS repo on the implementation details? https://github.com/Adventech/sabbath-school-ios

VitalikL avatar Oct 16 '23 22:10 VitalikL