Post

Replies

Boosts

Views

Activity

Reply to TabView - .search roles
My issue seems to be caused by having a tabview accessed from a navigation link. flow: button on "home page" navigates to the "tab view" the tabs then handle navigations as normal. the tabview search does not work in this case, but if I change the navigation link to a button which brings up a fullScreenCover instead, it works right away. so it seems to be a limitation on when the search role can be used. so this does not work: NavigationLink { SomeTabView(integrationId: integration.id) .id(integration.id) } label: { integrationRow(for: integration) } but this does: Button { selectedSomeViewId = IdentifiableUUID(id: integration.id) } label: { integrationRow(for: integration) } using: .fullScreenCover(item: $selectedSomeviewId) { wrapper in SomeTabView(integrationId: wrapper.id) } and @State private var selectedSomeViewId: IdentifiableUUID? There may be a more graceful way of handling this within a navigation link or without full screen cover, but I have only started with swift this year, and haven't come across any good examples of it. The reason I have this setup, is I basically have apps within the app. Unique integrations that are kept separate, but accessible from a main home page.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’25
Reply to App Icon - Requirements
Contents.json This is my latest version of the App Icon.appiconset contents. All image slots are filled in with their required sizes, there are no empty spots. Deleted the previous entry completely, and created a new one from the context menu. Here is how its setup in the menu: (also attempted the single size for iOS and watchOS without success) Here is my Plist as well, I have attempted adding the images to the root folder of the app, and adding strings to the bundle icon here, but that didn't work. so this is my last working version (upload-able on Monday 7/7/25 but not since) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>NSLocalNetworkUsageDescription</key> <string>Icarus uses local network access to find and connect to nearby devices for setup pairing.</string> <key>NSBonjourServices</key> <array> <string>_icarussetup._tcp</string> </array> <key>NSFaceIDUsageDescription</key> <string>Icarus uses Face ID to securely verify your identity before transferring settings to or from another device.</string> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> <key>UIBackgroundModes</key> <array> <string>remote-notification</string> </array> <key>com.apple.developer.icloud-container-identifiers</key> <array> <string>iCloud.IcarusSettings</string> </array> <key>com.apple.developer.icloud-services</key> <string>CloudKit</string> <key>CFBundleIcons</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>App Icon</string> </array> <key>UIPrerenderedIcon</key> <false/> </dict> </dict> <key>TVTopShelfImage</key> <dict> <key>TVTopShelfPrimaryImageWide</key> <string>Top Shelf Image Wide</string> </dict> </dict> </plist> I still get these 3 errors when trying to upload via Xcode: Validation failed Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 10.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface. (ID: 21b0dcbe-4633-4054-a80c-2f1cc96a6558) Validation failed Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface. (ID: 74453443-0dca-469d-a845-db96b4c4d301) Validation failed Missing app icon. Include a large app icon as a 1024 by 1024 pixel PNG for the 'Any Appearance' image well in the asset catalog of apps built for iOS or iPadOS. Without this icon, apps can't be submitted for review. For details, visit: https://developer.apple.com/documentation/xcode/configuring-your-app-icon. (ID: ef004a1f-c0a9-4469-bd1b-07d06177557b)
Jul ’25
Reply to TabView - .search roles
I think maybe I'm missing what needs to be included in the view itself to trigger the search bar? I can get the Search Icon into the tabview just fine, but I cannot get the actual search bar to appear. In the example projects I've located on the developer website, all of the ones with the search in the tab view, have an empty "this page is empty on purpose" search page, and their search bars also do not appear when that tab is selected. Such as this project: https://developer.apple.com/documentation/swiftui/enhancing-your-app-content-with-tab-navigation Tab(value: .search, role: .search) { OverseerrView(integrationId: integrationId) } results in the correct tab icon, and the view loads and shows what it should: However, when that tab is active, the search bar does not appear. I'm sure I'm missing something fairly simple, but I do believe I'll need a sample to see what it is. I've tried making sure my view has .searchable but I dont believe that to be the issue here. And if the limitation is because I am not simply searching content already loaded into the view, but instead needing to call performSearch() with whatever is typed into the search bar, but I do not believe this to be the case, as this view works in apps such as Apple Music, where is performs a search function then pulls results from elsewhere. Another limitation may be because of where my tab view is located, I have the below flow: homeview.swift > navigation link > TabView.swift > actualview (ie requests, users, discover from my image)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’25