Post

Replies

Boosts

Views

Activity

Reply to List Sections
I am so sorry for the confusion, here is everything: struct Final_Restaurant_View: View {     var data: [RestaurantListViewModel]     @State private var isHome = false     var body: some View {         NavigationView{             VStack {                 if data.count == 0 {                     Text("No Picks Found")                 }else {                     List(data) {                         data in                         Section(header: Text("GroupPicks")) {                             layout(data: data)                         } //                        layout(data: data)                     }                     .listStyle(GroupedListStyle())                 }                 Button(action: {                     isHome = true                 }, label: {                     Text("Go Home")                 })                 .padding()             }             .fullScreenCover(isPresented: $isHome, content: {                 ContentView(join: false)             })             .navigationBarTitle("Results")         }     } } struct layout: View {     var data: RestaurantListViewModel     var body: some View {         HStack {             URLImage(data.imageUrl) { image in                 image                     .resizable()                     .aspectRatio(contentMode: .fill)                     .clipped()                     .frame(maxWidth: 30, maxHeight: 30)                     .padding()             }             Text(data.name)                 .padding()             HStack {                 (Star Rating Logic             }             Button(action: {                 print("opening site pressed")                 if let url = URL(string: data.url) {                     UIApplication.shared.open(url)                 }             }) { //                Text("More Info")                 Image("yelp logo")                     .resizable()                     .aspectRatio(contentMode: .fit)                     .frame(maxWidth: 30)             }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to List Sections
Here is the content: struct layout: View {     var data: RestaurantListViewModel     var body: some View {         HStack {             URLImage(data.imageUrl) { image in                 image                     .resizable()                     .aspectRatio(contentMode: .fill)                     .clipped()                     .frame(maxWidth: 30, maxHeight: 30)                     .padding()             }             Text(data.name)                 .padding()             HStack {                 (rating logic)             }             Button(action: {                 print("opening site pressed")                 if let url = URL(string: data.url) {                     UIApplication.shared.open(url)                 }             }) { //                Text("More Info")                 Image("yelp logo")                     .resizable()                     .aspectRatio(contentMode: .fit)                     .frame(maxWidth: 30)             }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to SwiftUI Previews - Disk space issue
That does'n work for me, terminal says Using Previews Device Set: '/Users/mcrich/Library/Developer/Xcode/UserData/Previews/Simulator Devices'
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iPhone 13 pro max Problems with google meet
ask on apple forums not dev apple forums
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to List Sections
I am so sorry for the confusion, here is everything: struct Final_Restaurant_View: View {     var data: [RestaurantListViewModel]     @State private var isHome = false     var body: some View {         NavigationView{             VStack {                 if data.count == 0 {                     Text("No Picks Found")                 }else {                     List(data) {                         data in                         Section(header: Text("GroupPicks")) {                             layout(data: data)                         } //                        layout(data: data)                     }                     .listStyle(GroupedListStyle())                 }                 Button(action: {                     isHome = true                 }, label: {                     Text("Go Home")                 })                 .padding()             }             .fullScreenCover(isPresented: $isHome, content: {                 ContentView(join: false)             })             .navigationBarTitle("Results")         }     } } struct layout: View {     var data: RestaurantListViewModel     var body: some View {         HStack {             URLImage(data.imageUrl) { image in                 image                     .resizable()                     .aspectRatio(contentMode: .fill)                     .clipped()                     .frame(maxWidth: 30, maxHeight: 30)                     .padding()             }             Text(data.name)                 .padding()             HStack {                 (Star Rating Logic             }             Button(action: {                 print("opening site pressed")                 if let url = URL(string: data.url) {                     UIApplication.shared.open(url)                 }             }) { //                Text("More Info")                 Image("yelp logo")                     .resizable()                     .aspectRatio(contentMode: .fit)                     .frame(maxWidth: 30)             }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to List Sections
Here is the content: struct layout: View {     var data: RestaurantListViewModel     var body: some View {         HStack {             URLImage(data.imageUrl) { image in                 image                     .resizable()                     .aspectRatio(contentMode: .fill)                     .clipped()                     .frame(maxWidth: 30, maxHeight: 30)                     .padding()             }             Text(data.name)                 .padding()             HStack {                 (rating logic)             }             Button(action: {                 print("opening site pressed")                 if let url = URL(string: data.url) {                     UIApplication.shared.open(url)                 }             }) { //                Text("More Info")                 Image("yelp logo")                     .resizable()                     .aspectRatio(contentMode: .fit)                     .frame(maxWidth: 30)             }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Deeplinking
I fixed it by reloading the scene when the deep link handler is called
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Deeplinking
Update:  I know how to do it using a bool var. Unfortunately, it gets called after I load the view. How do I fix this?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to List Sections
I tried that, but when I do that, this happens:
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Change state from other struct
Decided to set this in the same struct and then pass it in as a parameter.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to iPhone storage takes so long to show
Ask on apple forums not dev, we are for developers, not consumers on a beta.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Swift Package Issue
here is the framework: https://github.com/chrisdhaan/CDYelpFusionKit
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Swift Package Issue
I didn't have some dependencies installed
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to IAP SkProduct issue
Fixed it, the simulator file I’d was wrong.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Title and Description ShareSheet
It worked, but the icon isn't showing. Any ideas?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Supporting Alternate App Icons
60px, 120px, and 180px. It’s in both because I also want to show the images. Also, I am checking.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Xcode12 build error. The linked framework 'Pods_projectA.framework'is missing one or more architectures required by this target: arm64
Running Xcode in rosetta helped me.
Replies
Boosts
Views
Activity
Jul ’21