Search results for

SwiftUI List performance

50,612 results found

Post

Replies

Boosts

Views

Activity

Reply to Swift UI List with section Index Titles
Do you want just to display this section number of make some use of it ?Or would you want an index for the List, as for a TableView ?Don't thinks Lists are that capable by now.But could go and look here (I did not):h ttps://www.reddit.com/r/SwiftUI/comments/dv7ddw/how_to_get_a_section_index_on_right_hand_side_of/I would be interested to read if you found something useful there.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’20
Workaround for LazyVStack in SwiftUI 1
I'm in ExerciceList view when I tap an ExerciceRow of my list I push new view ExerciceDetail. ExerciceDetail view displays a VStack with some other rows produced by some calculs that taking time and make transition between ExerciceList and one ExerciceDetail not smooth. Is there any way to reproduce lazy loading on some VStack like LazyVStack (in SwiftUI 2) with SwiftUI 1 without using list ?
0
0
482
Aug ’20
List with a Picker included in the list items
Hi Sorry I am new to coding and new to xcodes.So i think what i am looking to do is have a table view of a defined list and then each item within this list can has its on picker for the count,. I am not very good with xcode or programming and just learning the basics. What controls would i need to do this? And is there a way to link them easily? Or do i have to build each one individually and then link them date way?I would also like to store the quanities of stock (picker and items within last) within the app. really appreciate any steer in the right direction as i am not very good at this stuff but enjoy the idea of building something custom just for myself. Thanks
3
0
2.1k
Jul ’18
Notifications in SwiftUI
I have a reminder app that contains a list of items with anniversary dates. The application is written in SwiftUI. I want to know what the best way is to manage notifications on the anniversary dates. If I have 5 items in my list, each with their own different anniversary date, I want to allow the user to select a time for notifications (and day of, or day before notifications). The user can therefore select to be notified at 9 AM on the date of the anniversary. The user will specify the reminder time on the settings page. I will then create notifications for each date in the list to trigger at the time the user selected. My questions are as follows: Must I loop through the list and create a notification using UNUserNotificationCenter for each item recursively? The list might get big, but I don't see a way to create notifications for each item in the list without looping through it and creating a notification for each.... but is this the right way
0
0
853
Jan ’22
Swift 3 performances
Hi all.almost all of our apps has been updated to be compiled by XCode 8.3.2. We're using Swift3 and we noticed that on 32bit older iphone5/5C there are a drop down about performances. Application freezes for a while (about 1 or 2 seconds) and after this time we get rendering problem on some UI elements. Pull up/down, swipe, pull to refresh are not fluid. Same ipa running on 5s or later does not have any freeze problem nor rendering.Any idea? Anyone else is facing same problems?
1
0
4.8k
May ’17
Reply to Getting keyboard events from TextField
I think the onCommand(Selector, perform: ()->Void) https://developer.apple.com/documentation/swiftui/view/3367871-oncommandis made for that but I don't know how to use it or if it is already working.None of the `onCopyCommand`, `onCutCommand`, `func onDeleteCommand` and so forth seem to be working in beta 5.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’19
User blocked list and CallKit blocked list
I would like to know if there are a way for an app check users blocked list, not the ones blocked in CXCallDirectoryProvider, but the ones manually blocked by the user.This would provide usefull information to help manage that list or even check if there are anyone blocked by code.AddressBook framework could have a proprity for the contact to inform if it is blocked.
0
0
439
Jun ’16
SwiftUI Landmarks tutorial
Hi team, I'm very new to SwiftUI development and have been plugging through the tutorial here - https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation Now I want to try switching from a local JSON file to a remote server JSON response. I've looked over using URLRequest but have been running into various errors. Can someone share how to go about switching the load method from local to remote, in beginner's terms?
1
0
436
Feb ’21
Reply to Animation does not work with List, while works with ScrollView + ForEach
@Kopyl I tested with longer duration (3.0) and the difference is crystal clear. I have a real answer, but it is apparently a known issue with List https://stackoverflow.com/questions/74253108/why-is-animation-not-working-in-a-list-but-is-working-in-vstack List manages its own scrolling (List has an implicit ScrollView (as does Form)), making it pretty inflexible for defining behaviour for animation and forcing to use ScrollView instead. May also read this: https://stackoverflow.com/questions/76418666/swiftui-list-animations-are-not-smooth-when-adding-elements-to-a-vstack-in-a-lis
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’25
XPC - performance/load testing
I have an XPC server running on macOS and want to perform comprehensive performance and load testing to evaluate its efficiency, responsiveness, and scalability. Specifically, I need to measure factors such as request latency, throughput, and how well it handles concurrent connections under different load conditions. What are the best tools, frameworks, or methodologies for testing an XPC service? Additionally, are there any best practices for simulating real-world usage scenarios and identifying potential bottlenecks?
1
0
294
Apr ’25
Newbie ... Lists and Views
Hi , I am new to SwiftUI and Mac/iOS concepts so am on a very steep learning curve. If this is not the correct forum for this please let me know and I will delete and post elsewhere ... Basically I am doing a favor for a friend and writing a simple data collection app for his iPad in Swift... it consists of a quite long list list of items to select from, each of which will have several possible values. Clicking on a Change button next to each item will bring up a list of possible values to choose from. So .... The code works except that the list is displayed as an icon and has to be clicked to display the items to choose from ... **How do I get the list to display automatically when instanced without having to click on the List icon ? ** Code: I have a list view which is called as the result of a button press: Button(action: { isShowingList=true When the View is refreshed (State variable) results in the Selectable List view as fo
Topic: UI Frameworks SubTopic: SwiftUI
1
0
338
Jul ’24