Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

2. 3 Performance: Accurate Metadata Guideline 2.3.1 - Performance
2. 3 Performance: Accurate Metadata Guideline 2.3.1 - Performance We discovered that your app contains obfuscated code, selector mangling, or features meant to subvert the App Review process by changing this app's concept after approval to the App Store.My previous version of app got approved.Current version of app minor UI/UX changed and i received above app rejection reason from apple.Any suggestion.
10
0
15k
Jan ’19
iOS 15 SwiftUI Navigation > Tab View > List Not Displaying Navigation View Correctly
I have been working on a SwiftUI app that targets both iOS/iPhones and iPadOS/iPads and have found an issue with a the List contents being completely visible (i.e. not blurred) under the Navigation Title as shown below. It seems to only occur if the detail view is a TabView, and even then it still doesn't occur every time. The issue only occurs on iPads. Everything seems work fine on iPhones running iOS 15. A recreation can be found in the following code: import SwiftUI struct TestMainList: View { var body: some View { NavigationView { ScrollView { VStack { ForEach(1..<21) { NavigationLink(Detail ($0), destination: TestDetailTabView(name: Detail ($0))) .padding() Divider() } NavigationLink(destination: EmptyView()) { EmptyView() } } } .edgesIgnoringSafeArea([.bottom]) .navigationTitle(Text(List)) EmptyDetailView() } } } struct EmptyDetailView: View { var body: some View { Text(Select a detail item to view) } } struct TestDetailTabView: View { var name: String var body: s
0
0
1.7k
Aug ’21
App Reject Performance: Accurate Metadata (Guideline 2.3.1 - Performance)
Hi, I have an app, (match 3 game) sinse 5-6 year on the store.. I recently perform 2 changes... Improve GUI to support iphoneX / new ipad resolution and add button (reward video to receive free game items) but apple reject my apps with this reason...(Guideline 2.3.1 - Performance) and not send more details... Is beacuse is a paid app and cannot have reward video on it ? ThanksCarl
8
0
8.8k
Apr ’19
Function performance
Suppose I have an array of strings, and I want to find the index of a given string in that array. I'm wondering whether there will be much of a performance difference between these two functions:func indexOfName(name: String) -> Int? { for (index, element) in names.enumerate() { if element == name { return index } } return nil }func indexOfName(name: String) -> Int? { return names.enumerate().filter { $0.element == name }.first?.index }Or is the difference between them simply one of notation?
5
0
376
Aug ’16
SwiftUI tutorial
HI , I am going through the Swift UI tutorial “ Landmarks” app. Under building the landmarks list view section https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation I found that the instruction to add Identifiable option to the Landmark structure is not given. Due to this the preview of the LandmarkList fails to load in the SwiftUI canvas. The error shows “ cannot parse landmakData.json. Please correct the documentation.
1
0
306
Dec ’20
Degraded OpenGL Performance
I am using OpenGL ES 3 on a CADisplayLink. Everything is working, but I noticed that the frame rate degrades after a device has been used for a while (using my app or other apps). Rebooting the device restores the full performance.I am aware that advising users to reboot is a violation of the Human Interface Guidelines so if performance drops below a threshold the app isn't suppose to prompt the user to restart.Is there anything I can do to ensure the user is experiencing maximum performance? The difference between full performance and the degraded performance I am seeing is rather stark - somewhere around half the performance.It seems this affect has been observed by others, please see: http://stackoverflow.com/questions/12239576/ios-opengl-es-1-1-jerky-animation-using-cadisplaylink-reboot-fixes-for-a-whileThe referenced Stack Overflow was answered by the OP as to why their logged numbers didn't make sense, but nothing was done to address the lower performance oth
1
0
702
Aug ’16
Reply to SwiftUI 4: Set list background color
Found this note in the lounge: In general, you should not rely on implementation details of a framework (including SwiftUI) to achieve specific behaviors in your apps. The release notes did call out the change in implementation of List since we were aware of developers using UIKit methods to style their Lists in the past. This is a known limitation, but we realize this is a popular request, so rest assured we have noted the feedback here and in the SwiftUI lounge! Hmm.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Reply to SwiftUI List performane
I have the exact same problem. It seems that SwiftUI is not very smart, it compares the entire list, not only the visible rows. And what is worst, it processes each row, so if you have complex rows showing more data from relationships, is even slower. I decided NOT doing long list with SwiftUI for now, but now I have another problems because my app uses a synchronizer for updating the coredata and when something is modified in the background, does not trigger the UI update, not even using @FetchRequest SwiftUI is still BETA IMHO
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’19
Reply to How to get and set SwiftUI List scroll position?
Update for iOS 14 and macOS Big Sur (i.e this year’s update of SwiftUI). If using a ScrollView instead of list, there is new API for setting the scroll position: https://developer.apple.com/documentation/swiftui/scrollviewproxy/scrollto(_:anchor:) I discussed this with Apple engineers during a SwiftUI lab. No clean API to get scroll position to implement something like infinite load. But at least we can set it cleanly now. For many cases of displaying content, using ScrollView + LazyVStack is better than using a List, and then we can also use this new API.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’20
Reply to SwiftUI Table Header Background not appearing in iPadOS 26
Thank you for sharing your post. I am unable to view your code for the Table and the customization you are implementing. For a simple list, you can utilize the code provided below, which will generate a list on the main body. However, it would be beneficial to observe the specific customization you are making to achieve that behavior. Additionally, could you please provide the Xcode version and beta number you are using? import SwiftUI struct ContentView: View { var body: some View { Text(Title) NavigationStack { List { Text(Hello) Text(World) } } } } #Preview { ContentView() } Resources: https://developer.apple.com/documentation/swiftui/list Albert Pascual
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25