Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Notes from Your App and Next Generation Networks session
Two parts to session:Transitioning to IPv6-only networksReducing Delays in NetworkingTransitioning to IPv6-only networksMore mobile carriers are moving to IPv6 networksIn Ye Olde Days, cellular data networks used IPv4. As IPv4 addresses ran out, NAT was introduced to make IPs go further.To fix the long-term problem, mobile carriers are now moving to IPv6. But they're also having to support IPv4 with NAT.The carriers want to drop IPv4 with NAT, so they're deploying DNS64/NAT64 to handle translation between IPv4 and IPv6 networks.DNS64 synthesizes an IPv6 address for an IPv4-only serverNAT64 performs IPv6 to IPv4 address translationApp Store apps need to be IPv6 ready - It will be an app submission requirement later in 2015.Enabling IPv6 test network from a Mac1. Boot OS X 10.112. Open System Preferences3. Option-click on the Sharing preference pane4. Option-click on Internet Sharing5. A Create IPv6 Only Network checkbox will appear6. Check Create IPv6 Only Network (this may also be labeled Create NAT6
12
0
16k
Jun ’15
Test on iPhone 3GS with Xcode 6.
Hi,Is there a device/Xcode version compatibility list? I am trying to build and run an app on an iPhone 3GS to test compatibility with iOS 6 but Xcode 6 is not seeing the connected iPhone 3GS. Will I need to install Xcode 5 alongside the newer version to test on iPhone 3GS? Thank you.Also, I know that not many devices are running iOS 6 anymore so please do not say that I shouldn't support it; some users are still using that version more various reasons and iOS 6 is the earliest version supporting autolayout (which is the only requirement for my project).
4
0
906
Jun ’15
Reply to Troubleshooting the launch of local user XPC Launch Agent
wjens wrote:> I thought the XPC Service template within xcode was only for XPC Services hosted within a parent application - produces .xpc files. I'm pretty sure those don't work as standalone XPC services like you describe above.Thanks for your input.I thought that this might be the case as well. In a variant of my prior test code, not shown here, I tried it with an Launch Agent based on the .app AppKit template but this didn't really change the broken connection behaviour. Which leads me to believe it's some kind of configuration issue.Although, I haven't tried the code of the Launch Agent, as posted above, as an Mac App created with the .app AppKit Xcode template but with the GUI stuff stripped out or with the Command Line Tool template.I forgot to mention in my previous post that debugging print statements in the Launch Agent's main.m, like the fprintf() calls in the example code or NSLog() or asl_log() calls in my original test code, do not appear anywhere in the command line output or in the System C
Jun ’15
Swift 2 OpenCL "cannot invoke" type problem
Hi Everyone,I just tried to post this, but the cancel button is right below the tags control, and doesn't have a confirmation action, so I think I lost it. If this is a double post due to some kind of moderation delay apologies in advance...Anyway, on to the issue at hand. I have some Swift 1.2 code for OpenCL that I'm working on porting to Swift 2, and I'm having some trouble with the type system. The way that OpenCL is bridged into swift relies heavily on typedefs, and there are a TON!! of them. I had to perform some gymnastics in 1.2 to convince the type system that my argument is just the right kind of UInt32 (or is it cl_device_info?), but now those aren't enough in 2.A short sample of (some of!) the suspect code follows. There are about 50 instances of this kind of error in the project: private class func deviceInfoString(deviceID: cl_device_id, param paramIn: Int32) throws -> String { let param = cl_device_info(paramIn) var returnBufferSize: Int = 0 var retval: cl_int = CL_SUCCESS retval =
4
0
462
Jun ’15
What is the "actions" array in the "alerts" property of the push notification payload used for?
Refer to example 5 here: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW20It uses an actions property that isn't listed as a valid child property of alert in Table 3-2 on the same page. I thought notification categories are the proper method to define custom notification actions? What is the purpose of this actions property?
0
0
273
Jun ’15
Reply to CloudKit Operation Speeds
If you're considering CloudKit as an alternative to your existing on-device database systems, then you are going to be disappointed. You are performing operations against a remote server, not a local disk.As for whether 30 seconds is a typical operation completion time, it largely depends on the amount of data being transferred and the speed of the network.For what it's worth, my typical operation times are meaningfully measured in 100's of milliseconds unless I'm transferring large CKAssets.
Jun ’15
Reply to iOS: "Forget" bluetooth peripheral programmatically
I believe that if the peripheral breaks the bond iOS will remove it from the list of devices. Similar to the way you cannot control the connection interval for Core Bluetooth, but if you control the peripheral and can tell it to ask iOS for a different connection interval iOS will usually honor that request.So my guess would be that Elgato is asking the periphal to kill the pairing, and which then does so, and iOS response by removing the device.
Jun ’15
MapKit for osx
I need to use MapKit in an OSX app I'm writing for my engineering thesis (I'm studying geodesy and cartography). So no commercial use at all. Is there any way to access MapKit framwork without paying for developer's program? I know about university iOS program but the app wouldn't make any sense for ios device (it performs complicated geodetic calculations, can read data from txt file and save reports). Using mapkit would be a perfect way to visualize results.
0
0
313
Jun ’15
Reply to OpenGL with Metal
I'll do it... but I don't have enough time for both today.OpenCL is a painfull experience with big kernels on Yosemite, and I really hope that Metal performs better...So, my first attempt will be to replace my OpenCL code, and to let the things that work in place.
Topic: Graphics & Games SubTopic: General Tags:
Jun ’15
Reply to OpenGL with Metal
Well, you can use both, but with cost of transferring data between Metal buffer and Opengl buffers, because they are not aware of each other. So in case you are using results of repeatedly invoked Metal Kernels(not just single precomputations) in OpenGL realtime rendering, I guess you will lose too much performance on that data synchronization.
Topic: Graphics & Games SubTopic: General Tags:
Jun ’15
Named parameter HORROR
Two days into my Swift (2) experience...func X( a:Int, b:Int) { print(a,b) } X( 1, 2) // error: missing argument label 'b:' in call X(a:1, 2) // error: incorrect argument labels in call (have 'a:_:', expected '_:b:') X( 1, b:2) // ok X(a:1, b:2) // error: extraneous argument label 'a:' in callHorror!😢😮😠😕😟➖⚠✖ And I *never* use Emoji.Contrast this with:print( [1,2,3].contains(2) )Perfect, I didn't know any of that syntax. But that's what I would expect. That's 'Pythonic'. Writing out my idea in straight pseudocode, and it works! Isn't that the goal of all of this? Getting the most natural effortless straightforward syntax?That named parameter mess reminds me of C++, where everything breaks down into a zillion edge cases.(On a side note, I wasted a lot of effort trying to get named parameters past the C++ committee. So there is some irony in the fact that although Swift has done it, it has in-so-doing created a C++-style awfulness).I am making a bad smell here for a reason. Because I've watched the videos,
19
0
5.7k
Jun ’15
Scheduled, background process
On WatchOS, there is a notification that seems to go off about ten minutes until the hour that reminds you to stand up and move around some. I know we can schedule local notifications, but when the notification is triggered how is Apple checking if they actually need to present the notification or not? For example, if I have stood in the past hour and moved around, there's no need to show me the notification at 10 minutes until the hour.My app runs on iOS. Reaching a goal is dependent on a user's last known action and the time elapsed since that last action. Currently, the user can launch my app and logic will be run to let them know their progress in reaching their goal. What I would like is the ability to run this logic in the background while the app is backgrounded (or even if it is killed). The end result for the user would be their iPhone is in their pocket and my app notifies them when the goal has been reached.There is not a server component to my app. I am aware of things like region monitoring, moni
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
851
Jun ’15
Swift nested for loops cause performance hit
My issue is that the following code brings my frame rate (in a debug build) from 60 fps to 2 fps. (iPad Mini) Release is faster but still very slow (15fps)let objects = world!.children // world is an SKSpriteNode, the children added are a subclass of SKSpriteNode - this line alone causes no problemsfor object1 in objects{ for object2 in objects { // there is no code executed here - it's just empty but still very slow }}With ~200 nodes in the array, I realize it's about 40000 executions but I don't think it should be so slow with nothing going on in the loop.I would like to know if there is a way to setup a double nested loop like this which still has good performance for a debug build.I'm completely new to Swift so perhaps I'm inadvertently allocating things by looping like this.Please let me know if there is a more efficient way to loop through a list of SKSpriteNodes.thanks.
9
0
4.4k
Jun ’15