I have this struct:
struct Final_Restaurant_View: View {
var data: [RestaurantListViewModel]
@State private var isHome = false
var body: some View {
NavigationView{
VStack {
List(data) {
data in
layout(data: data)
}
.listStyle(GroupedListStyle())
Button(action: {
isHome = true
}, label: {
Text("Go Home")
})
.padding()
}
.fullScreenCover(isPresented: $isHome, content: {
ContentView()
})
.navigationBarTitle("Results")
}
}
}
Which is supposed to get data and display it in a list. The problem is that I can't find anything about sections on a table structured like this and therefore, it goes wack with the section title. Any Ideas???
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
How do I show a share sheet in a child view. UIApplication.shared.windows.first?.rootViewController?.present(activityVC, animated: true, completion: nil) doesn't work.
Thanks in advanced!
I have an M1 Mac and I am on Monterey beta 4. I have Xcode 12 and whenever I try to run my iOS app on my Mac natively, I get this error message.
Could not attach to pid : “4837”
Lost Connection
Full Log
Any Ideas?
Thanks in advanced
How do I create an action that occurs when a child view (showing through a NavigationLink) is dismissed? I am trying to pass a value, but can't create a function to use the received value.
Thanks in advanced.
Hi,
I have this issue where I have this code and when I arrange the .alerts in any way, none of them show except the codeError alert. Please Help!
Code
Hi,
I am trying to use mapkit auto completion in my SwiftUI project and whenever I run the view, I get a bunch of errors such as:
2022-02-12 19:45:59.095462-0800 Pickt[64199:2417526] [SearchAttribution] No matching attribution source found for com.timeout
2022-02-12 19:45:59.095595-0800 Pickt[64199:2417526] [SearchAttribution] No matching attribution source found for com.theculturetrip
2022-02-12 19:45:59.095822-0800 Pickt[64199:2417526] [SearchAttribution] No matching attribution source found for com.redtri
2022-02-12 19:45:59.095909-0800 Pickt[64199:2417526] [SearchAttribution] No matching attribution source found for com.fotospot
2022-02-12 19:45:59.096549-0800 Pickt[64199:2417526] [SearchAttribution] Error loading attribution info for identifier com.timeout from geod: Error Domain=GEOErrorDomain Code=-8 "No matching attribution source found for com.timeout" UserInfo={NSDebugDescription=No matching attribution source found for com.timeout}
2022-02-12 19:45:59.096679-0800 Pickt[64199:2417526] [SearchAttribution] Error loading attribution info for identifier com.theculturetrip from geod: Error Domain=GEOErrorDomain Code=-8 "No matching attribution source found for com.theculturetrip" UserInfo={NSDebugDescription=No matching attribution source found for com.theculturetrip}
2022-02-12 19:45:59.096761-0800 Pickt[64199:2417526] [SearchAttribution] Error loading attribution info for identifier com.redtri from geod: Error Domain=GEOErrorDomain Code=-8 "No matching attribution source found for com.redtri" UserInfo={NSDebugDescription=No matching attribution source found for com.redtri}
2022-02-12 19:45:59.096837-0800 Pickt[64199:2417526] [SearchAttribution] Error loading attribution info for identifier com.fotospot from geod: Error Domain=GEOErrorDomain Code=-8 "No matching attribution source found for com.fotospot" UserInfo={NSDebugDescription=No matching attribution source found for com.fotospot}
and then the auto complete breaks until I dismiss and reload the view.
Full Code
I am in desperate need of help, thx in advance!
Hi!
I have this code, and when I do it according to the documentation, it doesn't let me swipe. Please Help!
Code.txt
Hi,
I have this code in my (App).swift file and it passes an @Binding variable into my ContentView. The problem is that it doesn’t update in the content view. Thanks in advance!
App.swift
Hey,
Whenever I upload a build to App Store Connect, I get an Invalid Binary with the error:
One or more dynamic libraries that are referenced by your app are not present in the dylib search path
Here are all the frameworks in my project:
And here is my Cocoapods:
Thx in advanced!
Edit
Here is my output from running otool -L:
otool -L Output
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
Frameworks
Swift Packages
Hi All,
I am trying to add an UIHostingViewController to my UIViewController, to cover the screen. Unfortunately, I keep getting this error (Thread 1: "NSLayoutConstraint for <_TtGC7SwiftUI19UIHostingControllerV5Pickt10ViewRouter_: 0x7fa32a37c3f0>: Constraint items must each be a view or layout guide.") from my code:
let controller = UIHostingController(rootView: ViewRouter(join: join, create: create, showPicker: showPicker, setMock: setMock))
controller.view.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(controller.view)
view.addConstraints([
NSLayoutConstraint(item: controller,
attribute: .top,
relatedBy: .equal,
toItem: view.safeAreaLayoutGuide,
attribute: .top,
multiplier: 1,
constant: 0),
NSLayoutConstraint(item: controller,
attribute: .leading,
relatedBy: .equal,
toItem: view.safeAreaLayoutGuide,
attribute: .leading,
multiplier: 1,
constant: 0),
NSLayoutConstraint(item: controller,
attribute: .trailing,
relatedBy: .equal,
toItem: view.safeAreaLayoutGuide,
attribute: .trailing,
multiplier: 1,
constant: 0),
NSLayoutConstraint(item: controller,
attribute: .bottom,
relatedBy: .equal,
toItem: view.safeAreaLayoutGuide,
attribute: .bottom,
multiplier: 1,
constant: 0)
])
Hi!
I am trying to record the AVAudioPlayer's output so I can play it back to the user. I can't find anything online, but I am sure that it's possible, maybe with AVEngine? Please help asap!
Hi,
I am helping Evan Richman with the team id L7JQRVXU2V transition to my business (MCRICH LLC), but the status has been in transition for about 1.5 weeks, even though I have gotten the confirmation code. What is going on?
Please help!
Hi,
I have this error:
Provisioning profile "iOS Team Provisioning Profile: com.Mcrich23.Pickt" doesn't include the com.apple.runningboard.assertions.webkit entitlement
However, I can't add this entitlement because it pretty much does not exist. Any ideas?