Post

Replies

Boosts

Views

Activity

iOS app icon not updating with Xcode 13.0 / iOS 15.0
I'm about to release an app update with a new app icon. I've changed the icons several times to try different designs with Xcode 12.x and iOS 14 and never had any issues. Today I updated to Xcode 13 + iOS 15, and no matter what I try, the device keeps showing my previous version of the app icon. Xcode displays the new icon (e.g. under "Targets" of the project settings). The correct (new) icon is being displayed when running in simulator. In the "Devices and Simulators" window, the old/wrong icon is displayed under "Installed Apps". Things I've tried: I checked all asset catalogs etc. in my project and can confirm the old icon asset is no longer there. Clean build folder. Delete the app off the device from "Devices and Simulators". Delete the app on the device itself. Restart the iPhone whilst app is still on the device. Restart the iPhone whilst app is deleted. Restart Mac. I created a new iOS icon asset and linked that from the iPhone project settings. Increased the build number of the iPhone app. No matter what I try, the old icon keeps coming back. It seems like iOS 15 caches the icon and building and running on device from Xcode is not enough. Any ideas
15
1
18k
Aug ’23
List view destroys Tab Bar in SwiftUI 3 on iOS 15.0
I have a TabView in my app. One of the tabs contains a screen with a List view. No matter what content or .listStyle I try to apply, the List messes up the tab bar: The divider line disappears immediately and then, when the user goes to a different tab, depending on that content, it either restores/fixes the tab bar, so it looks normal again, or it remains messed up in a sense that only the currently active tab icon + label are visibly in the foreground. The blurred background of the tab bar and the other icons are either invisible or too far in the background, i.e. the content of the tab screen goes in front of the tab icons. The tab bar is expected to always be above the screen contents, even if the screen uses .ignoresSafeArea(). I also tried manually setting .zIndex(1) on various views. Everything worked perfectly fine with iOS 14.x, but since upgrading to iOS 15 this weird bug appeared. Example project: import SwiftUI import MapKit struct ContentView: View { var body: some View { TabView { screen1.tabItem { Image(systemName: "1.square.fill") Text("Tab 1") } .tag(1) .navigationViewStyle(StackNavigationViewStyle()) screen2.tabItem { Image(systemName: "2.square.fill") Text("Tab 2") }.tag(2) screen3.tabItem { Image(systemName: "3.square.fill") Text("Tab 3") }.tag(3) } } var screen1: some View { ScrollView { VStack { ForEach(1..<80) { index in Text("Line \(index)") } } .frame(maxWidth: .infinity) } } @State private var region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 1, longitudeDelta: 1)) var screen2: some View { Map(coordinateRegion: $region) .ignoresSafeArea() } var screen3: some View { List { Text("List Item") } } }
3
2
3.8k
Mar ’23
iOS app icon not updating with Xcode 13.0 / iOS 15.0
I'm about to release an app update with a new app icon. I've changed the icons several times to try different designs with Xcode 12.x and iOS 14 and never had any issues. Today I updated to Xcode 13 + iOS 15, and no matter what I try, the device keeps showing my previous version of the app icon. Xcode displays the new icon (e.g. under "Targets" of the project settings). The correct (new) icon is being displayed when running in simulator. In the "Devices and Simulators" window, the old/wrong icon is displayed under "Installed Apps". Things I've tried: I checked all asset catalogs etc. in my project and can confirm the old icon asset is no longer there. Clean build folder. Delete the app off the device from "Devices and Simulators". Delete the app on the device itself. Restart the iPhone whilst app is still on the device. Restart the iPhone whilst app is deleted. Restart Mac. I created a new iOS icon asset and linked that from the iPhone project settings. Increased the build number of the iPhone app. No matter what I try, the old icon keeps coming back. It seems like iOS 15 caches the icon and building and running on device from Xcode is not enough. Any ideas
Replies
15
Boosts
1
Views
18k
Activity
Aug ’23
List view destroys Tab Bar in SwiftUI 3 on iOS 15.0
I have a TabView in my app. One of the tabs contains a screen with a List view. No matter what content or .listStyle I try to apply, the List messes up the tab bar: The divider line disappears immediately and then, when the user goes to a different tab, depending on that content, it either restores/fixes the tab bar, so it looks normal again, or it remains messed up in a sense that only the currently active tab icon + label are visibly in the foreground. The blurred background of the tab bar and the other icons are either invisible or too far in the background, i.e. the content of the tab screen goes in front of the tab icons. The tab bar is expected to always be above the screen contents, even if the screen uses .ignoresSafeArea(). I also tried manually setting .zIndex(1) on various views. Everything worked perfectly fine with iOS 14.x, but since upgrading to iOS 15 this weird bug appeared. Example project: import SwiftUI import MapKit struct ContentView: View { var body: some View { TabView { screen1.tabItem { Image(systemName: "1.square.fill") Text("Tab 1") } .tag(1) .navigationViewStyle(StackNavigationViewStyle()) screen2.tabItem { Image(systemName: "2.square.fill") Text("Tab 2") }.tag(2) screen3.tabItem { Image(systemName: "3.square.fill") Text("Tab 3") }.tag(3) } } var screen1: some View { ScrollView { VStack { ForEach(1..<80) { index in Text("Line \(index)") } } .frame(maxWidth: .infinity) } } @State private var region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 1, longitudeDelta: 1)) var screen2: some View { Map(coordinateRegion: $region) .ignoresSafeArea() } var screen3: some View { List { Text("List Item") } } }
Replies
3
Boosts
2
Views
3.8k
Activity
Mar ’23