Search results for

SwiftUI List performance

50,609 results found

Post

Replies

Boosts

Views

Activity

Conflicting Performance Data
Hi,At a campaign level I can see a number of conversions, at an ad group level I am seeing less and at a keyword level none or just a fraction of the campaign level number.Is this normal? Is anyone else experiencing this?I know thre is a 3 hr delay on data but I am talking about yesterday's performance so I can imagine that it had plenty of time to refresh?Thanks,Dimi
1
0
407
May ’17
SecTrustEvaluate - what checks does it perform
There is no documentation that clearly states the checks that this method performs on the Server SSL Certificate.From the Technical note: TN2232 - https://developer.apple.com/library/ios/technotes/tn2232/_index.html//apple_ref/doc/navigation/#//apple_ref/doc/uid/DTS40012884-CH1-SECGLOSSARY1. I'm unsure if this method performs the X.509 checks mentioned in the above link2. Am also unsure if does the TLS specific tests that's also mentioned in the above link3. Because if it does so, then In my case of SSL Pinning using certifiecates signed by the company's Test CA (not the well known global ones eg. Verisign/Digicert/Geotrust), I'm guessing I will necessarily have to provide anchor certificates before callin the SecTrustEvaluate method or am I uncorrect in saying this?Got this link http://opensource.apple.com//source/Security/Security-55471/libsecurity_keychain/lib/SecTrust.cppam now reading it to see what checks are done... but have very little c++ experience, so an answer to this question wi
0
0
535
Jun ’16
reminders list
What determines what list reminders are included in, such as the Shopping List list of reminders that has it's own view in the Reminders app. How do I access that list and how do I create a separate list programmatically. Is there a class object that translates to a list?
2
0
1.6k
Jun ’17
ComputeShader Performance issue
I'm doing Tile-Based Deferred Rendering recently.What surprise me is that it takes 2ms only to set up a empty compute shader(iPhone6 iOS 9.2) and the frame time add up to 10ms just applying Apple's sample code MetalImageProcessing greyscale filter to my output image.Is an iphone capable of doing TBDR considering the bad performance of Metal Compute shader?
2
0
1k
Jan ’16
Performance Impact of Associated Domains
Could someone provide some insights about the performance hits for adding associated domains? What guidelines should we use to make the most out of associated domains and minimize performance impact? Are there specific tips in terms of domains for different locales or using wildcards in the domain? Is there a point where there are too many associated domains in the entitlements file? Will marking an associated domain as developer mode improve performance for prod apps, as production apps won’t need to request the asa files from those domains? Thanks!
0
0
542
Sep ’21
Horizontal List with NavigationView and NavigationLink
I have a list with five rows as follows. import SwiftUI struct ContentView: View { @State var horizonModels = [MenuModel]() var body: some View { ZStack { Color.green NavigationView { List { ForEach(horizonModels, id: .self) { model in if model.id == 0 { NavigationLink( destination: MenuView0(), label: { Text((model.name)) }) } else { NavigationLink( destination: MenuView1(), label: { Text((model.name)) }) } } } } } .ignoresSafeArea() .onAppear(perform: { horizonModels = [ MenuModel.init(id: 0, name: Shopping), MenuModel.init(id: 1, name: Gift cards), MenuModel.init(id: 2, name: Video), MenuModel.init(id: 3, name: Music), MenuModel.init(id: 4, name: Account) ] }) } } struct MenuModel: Hashable, Identifiable { let id: Int let name: String } struct MenuView0: View { var body: some View { Text(Menu 0) } } struct MenuView1: View { var body: some View { Text(Menu 1) } } And I get something like the following screenshot. Well, I actually want to create a horizontal list
1
0
1.1k
Dec ’21
Reply to Universal link not passed to SceneDelegate when app runs in the background
I raised a TSI to AppleDTS and they informed me that the scene(_ :continue:) method is for a UIKit app. For SwiftUI app, we have to use the onOpenURL(_:perform:) view modifier to handle universal links (and other URL based launches like file launch, deep link etc.) as shown below. WindowGroup { ContentView() .onOpenURL(perform: { (universalLink: URL) in Log(String(format: universalLink = %@, universalLink.absoluteString)) // Handle universal link }) }
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’24
SwiftUI NavigationSplitView EditMode
Dear Apple Engineers / SwiftUI team! NavigationSplitView A correct navigation will be provided by List 'selection' parameter, however in case of editing (EditMode) it should be occupied by dynamic data collection set... How do you think to alternate between these two parameters? @EnvironmentObject private var router: Router @State private var selection: Set = [] Navigation List(selection: $router.selectedItem) { ... } EditMode Active List(selection: $selection) { ... } Thanks in advance.
0
0
463
Apr ’23
Reply to ScrollViewProxy scrollTo in onAppear may cause state changes to be lost
Hi @wiedem .onAppear { print(scrolling) withAnimation { scrollProxy.scrollTo(state2ID) } } The onAppear(perform:) modifier doesn’t necessarily equate view visibility. It’s triggered when the view is added to the view hierarchy and isn’t tied to its visibility. The onAppear(perform:) view modifier is intended to enable you to perform actions before the view is inserted into the view hierarch and the The system makes no guarantees on the specific timeframes on when either onAppear(perform:) or onDisappear(perform:) modifiers are called. The correct approach is to use the .task modifier, which is asynchronous, or the onChange modifier so that SwiftUI enqueues a new update once the value has propagated through. For instance, you can use it like this: .onChange(of: viewModel.state2) { if viewModel.state2 { print(scrolling) withAnimation { scrollProxy.scrollTo(state2ID) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
UIToolbar in SwiftUI?
I've been experimenting with SwiftUI and couldn't figure out how to get a simple UIToolbar to appear at the bottom of the screen.Basic view:struct MyView : View { var body: some View { NavigationView { List { NavigationButton(destination: Text(1)) { Text(Element 1) } // ... }.navigationBarTitle(Text(Elements)) } } }
4
0
8.5k
Jun ’19
SwiftUI - ForEach in List shows the wrong row in detail with iOS 15 but the right one in iOS 14
In a List where I have a ForEach works fine for iOS 14 real device and in the simulator when I tap a row that shows detail but not with my iPhone X with iOS 15. Other iPhone X with iOS 14 is showing the right detail from the selection. macOS Big Sur Xcode 12.5.1 Here is the code: @ObservedObject var teamStore = TeamStore() @State private var showDetail = false @State private var viewState = CGSize.zero NavigationView { List { ForEach(teamStore.teams, id: .id) { team in Section(header: Text(getLocalizedTeam(team))) { ForEach(team.ringer) { wrestler in Button(action: { showDetail.toggle() }, label: { WrestlerRow(wrestler: wrestler) }) .sheet(isPresented: $showDetail, content: { WrestlerDetailView(wrestler: wrestler) }) } //: FOREACH } //: SECTION } //: FOREACH } //: LIST ... When I build and run on my iPhone X with Xcode Version 13.0 beta 5 (13A5212g) the same issue and the text foreground color is in blue. Thanks for suggestions Regards Berkant
7
0
3.5k
Aug ’21
Setting breakpoints in SwiftUI
I am trying to debug some odd launch performance on iPad in an app using SwiftUI. I have set breakpoints in the SwiftUI portions of the app as well as in procedural code, but no breakpoints are hit during execution. I have successfully set and observed breakpoints before in SwiftUI, so I suspect I've got some project setting wrong, but I can't see what I'm missing. I'm using Xcode 12.5 on Big Sur on a MacBook Pro. I appreciate any suggestions.
0
0
818
Jul ’21
List with subsections and deletable Elements.
Hello everybody. I have an array of students which the app should divide into 5 groups wich should be shown in different sections of the List. To do this I have created the List: List{ Section(Group 1) { ForEach(splitArray(schueler)[0], id: .self) {SchuelerName in Text(SchuelerName)} .onDelete(perform: delete) } Section(Group 2){ (ForEach(splitArray(schueler)[1], id: .self) {SchuelerName in Text(SchuelerName)} .onDelete(perform: delete)) } Section(Group 3){ (ForEach(splitArray(schueler)[2], id: .self) {SchuelerName in Text(SchuelerName)} .onDelete(perform: delete)) } Section(Group 4){ (ForEach(splitArray(schueler)[3], id: .self) {SchuelerName in Text(SchuelerName)} .onDelete(perform: delete)) } Section(Group 5){ (ForEach(splitArray(schueler)[4], id: .self) {SchuelerName in Text(SchuelerName)} .onDelete(perform: delete)) } And a function that defines my groups by splitting my array: func splitArray(_ array: [T]) -> [[T]] { let count = a
3
0
373
Sep ’23
Sizing SpriteView inside a List
I am trying to display a SKScene inside a SwiftUI list but I'm having problems getting it to size properly. Here is the code I'm using: struct MyView: View { var scene: SKScene // this is a SKScene with .aspectFit scaling mode var body: some View { List { Section { GeometryReader { geo in SpriteView(scene: scene, options: [.allowTransparency]) .frame(height: geo.size.width / scene.size.width * scene.size.height) } } Section { Text(SomeOtherStuff) } } } } Doing this scales the actual SKScene properly but the list 'cell' doesn't stretch to fit the scene it contains, therefore clipping chunks of said scene. If I drop the GeometryReader and hard code the height, the cell resizes. My guess is that the SKScene dimensions are not yet available to SwiftUI when the GeometryReader is evaluated. Any suggestions?
2
0
571
Jan ’24