Posts

Post not yet marked as solved
1 Replies
1.3k Views
This doesn't seem like an edge case design issue, so I can't imagine why I'm unable to get it to work and / or find a solution. I want to have an image at the top of the view, below that a list of items, and some text below the list. Regardless of what I attempt, the List disappears. I've tried using Section(header: x, footer: y) inside the List, but that completely throws everything out of whack, plus it's not really what I want to do; the Section becomes clickable and allows the contents to be hidden. (And, regardless, the Section footer is never displayed.) Can anyone point me in the right direction here? Am I just attacking this problem completely incorrectly? Example ContentView followed by extracted ListView. (The HeaderView is simply an Image and the FooterView is simply some Text blocks. Nothing complicated at all.) var body: some View { 		ZStack{ Color.themeBackgroundColor .edgesIgnoringSafeArea(.all) VStack{ ScrollView{ HeaderView() ListView() FooterView() } } } } struct ListView: View { 		var body: some View{ 				List{ 						ForEach(items) { title in 								Text(title.title) 						} 				} 				.listStyle(SidebarListStyle()) 		} }
Posted Last updated
.
Post marked as solved
1 Replies
256 Views
I'm trying to duplicate some of the functionality of the Emoji Rangers widget in my app. The Emoji Rangers app uses game:///panda and game:///egghead for deep-linking to specific characters. But for the life of me I cannot determine how the app is registering the game:/// URL scheme. We're supposed to register those in the URL Types section of the Info tab of the project, but for the demo app (which works) there is nothing there. Did Apple do something with Simulator / Xcode to hijack that specific URL scheme? Or am I missing something somewhere?
Posted Last updated
.
Post not yet marked as solved
0 Replies
456 Views
I have built a Core Data app which contains a bunch of cookies and their ingredients.If the user elects to allow it, once each week the app sends a Notification suggesting a cookie to make.I have everything working well, but I cannot randomize the cookie displayed unless the user closes and opens the app and triggers the generation of a new UNMutableNotificationContent instance inside AppDelegate.I understand why this is happening, of course. The call to UNUserNotificationCenter.current().add() for the UNNotificationRequest is inside AppDelegate's didFinishLaunchingWithOptions function, so it won't be called unless the app is closed and then opened again, even though the UNCalendarNotificationTrigger is set to repeating. There's no way to assign a new cookie to UNMutableNotificationContent unless the process happens again.But surely this must be something that other developers have solved already.Any ideas?
Posted Last updated
.