|
KidDynamite posted:Well poo poo. That’s def an area I need more experience with. Can you to point at any resources you think would have made you ace the section? that's the problem: I absolutely cannot. there doesn't appear to be anything that covers the depth they're looking for that's not the official docs, and those are super dry to the point of almost impracticality. I even asked the interviewers after the second time I interviewed to please send me any resources they knew of, and got nothing back. obviously people still pass and get jobs at Apple, I just have no idea how they pick up the skills for that one interview.
|
# ? Jun 1, 2021 14:53 |
|
|
# ? May 15, 2024 04:39 |
|
I would fail hard at concurrency-related questions in an interview. I feel like I've been cheating by using ReactiveCocoa (pre-Swift) and RxSwift (and now Combine) for so long.
|
# ? Jun 1, 2021 15:36 |
|
Is there an overwhelming consensus for naming every viewcontroller "XxxViewController" instead of "XxxVC"? I find the shorthand version much easier to parse at a glance, but I'm not gonna go down this path if everybody else has decided not to. Edit: Also. I added som Firebase products to a project using Swift Package Manager. Now I realize I need to add one more that I didn't originally select from the available list. Is there an easy way to do this? uncle blog fucked around with this message at 22:23 on Jun 1, 2021 |
# ? Jun 1, 2021 22:02 |
|
uncle blog posted:Is there an overwhelming consensus for naming every viewcontroller "XxxViewController" instead of "XxxVC"? In my personal projects I do this and haven't run into issues. I pitched it to folks at work and they wanted `ViewController` so that's what we do there. uncle blog posted:Edit: I'm not sure - I think I've always had to remove and add it back. I'm pretty salty about the SPM+Xcode integration as a whole - I wish it were just a plain Swift file you could edit by hand (even if there were a graphical interface it should just generate/modify a swift file). Glimm fucked around with this message at 22:36 on Jun 1, 2021 |
# ? Jun 1, 2021 22:27 |
|
I love how there's three different ways of using SPM with Xcode (open a Package.swift file, generate a xcode project from a Package.swift file, and add SPM packages to an xcodeproj) and you get significantly different sets of features and bugs depending on which you pick.
|
# ? Jun 2, 2021 00:41 |
|
Anyone have any experience with the the apparently new limitations on using mulitcast in apps? Our app both sends and receives multicast UDP in order to discover devices on the local network. It appears as though 14.6 broke this. I've found this page https://developer.apple.com/news/?id=0oi77447. That page has a link titled Request the com.apple.developer.networking.multicast entitlement which sends you to an odd page where you have to manually fill things out like App ID, App Name, Description, etc. I would have assumed Apple could have figured out most of this information since the app is registered but whatever. We've filled out the form and added the 'Privacy - Local Network Usage Description' string to the plist but then what happens? We haven't received any confirmation or additional information after submitting the form. At some point does someone wave their magic wand and our app starts working? Will we need to resubmit after they've done whatever they need to do?
|
# ? Jun 4, 2021 15:15 |
|
Experiencing some weird collision issues: Here's my physicsBody code for the path-based colliders that cover the "death" areas: code:
code:
Edit: I think it might be making a convex path out of the path I provide, which would explain why it always tends to happen at that location. Something like this:
|
# ? Jun 7, 2021 01:16 |
|
awesomeolion posted:Experiencing some weird collision issues: Is it the tail?
|
# ? Jun 7, 2021 01:40 |
|
P0PCULTUREREFERENCE posted:Is it the tail? I tried disabling the tail and got the same results. I think it might be the convex issue I posted above. Probably could have done a better job reading the physicsBody init polygonFrom docs: quote:A convex polygonal path with counterclockwise winding and no self intersections. The points are specified relative to the owning node’s origin.
|
# ? Jun 7, 2021 01:59 |
|
....So now you can build on iPadOS?
|
# ? Jun 7, 2021 18:53 |
|
Small White Dragon posted:....So now you can build on iPadOS? yeah they way they zoomed past that was weird.
|
# ? Jun 7, 2021 19:56 |
|
I got the sense it was only apps created in a playground and using SwiftUI, so I'm guessing it's not super complex stuff.
|
# ? Jun 7, 2021 20:48 |
|
I really hope Xcode Cloud is a real thing that Apple uses internally because a working CI/CD system for apple development would be so amazing.
|
# ? Jun 7, 2021 21:02 |
|
KidDynamite posted:yeah they way they zoomed past that was weird. Why do I have the feeling it'll be hardware restricted to specific models too...
|
# ? Jun 7, 2021 21:06 |
|
Hello struct AttributedString!
|
# ? Jun 7, 2021 23:31 |
|
The Metal people always seem very on the ball with lots of updates, sessions, documentation, and sample code. Where should I start if I want to dive in and learn it?
|
# ? Jun 7, 2021 23:55 |
|
https://metalbyexample.com is how I learned, but the dude has for some weird reason gone back and changed some of the older articles and their code samples and they no longer compile as-is (he removed some stuff that used to be in them)
|
# ? Jun 8, 2021 00:52 |
|
Plorkyeran posted:I really hope Xcode Cloud is a real thing that Apple uses internally because a working CI/CD system for apple development would be so amazing. GitHub Actions holds a special place in my heart.
|
# ? Jun 8, 2021 05:24 |
|
Plorkyeran posted:I really hope Xcode Cloud is a real thing that Apple uses internally because a working CI/CD system for apple development would be so amazing. It is.
|
# ? Jun 8, 2021 05:46 |
|
Small White Dragon posted:....So now you can build on iPadOS? You can build SwiftUI apps in Swift Playgrounds.
|
# ? Jun 8, 2021 05:47 |
|
TheReverend posted:GitHub Actions holds a special place in my heart. The same place as Xcode 12.4?
|
# ? Jun 8, 2021 07:50 |
|
kind of salty AsyncImage is SwiftUI only.
|
# ? Jun 8, 2021 21:21 |
|
Does this not work for your use case? https://developer.apple.com/documentation/uikit/uiimage/3750844-preparefordisplay
|
# ? Jun 9, 2021 02:49 |
|
Pulcinella posted:Does this not work for your use case? did not see that and it wasn't mentioned in What's New In UIKit. good find!
|
# ? Jun 9, 2021 03:18 |
|
KidDynamite posted:did not see that and it wasn't mentioned in What's New In UIKit. good find! This has been a good overview of all the new developer focused technologies. https://developer.apple.com/documentation/New-Technologies-WWDC-2021
|
# ? Jun 9, 2021 03:31 |
|
fankey posted:Anyone have any experience with the the apparently new limitations on using mulitcast in apps? Our app both sends and receives multicast UDP in order to discover devices on the local network. It appears as though 14.6 broke this. I've found this page https://developer.apple.com/news/?id=0oi77447. That page has a link titled Request the com.apple.developer.networking.multicast entitlement which sends you to an odd page where you have to manually fill things out like App ID, App Name, Description, etc. I would have assumed Apple could have figured out most of this information since the app is registered but whatever. We've filled out the form and added the 'Privacy - Local Network Usage Description' string to the plist but then what happens? We haven't received any confirmation or additional information after submitting the form. At some point does someone wave their magic wand and our app starts working? Will we need to resubmit after they've done whatever they need to do? The "Privacy - Local Network Usage Description" is required when you are using Bonjour (eg via NWBrowser). This doesn't require any special entitlements and is automatically controlled by the TCC prompt for permission (and can be toggled in Settings). If at all possible I highly recommend using Bonjour. It's open source (see mDNSResponder) and built-in basically everywhere at this point. The entitlement is if you want direct access to multicast TCP/UDP (depending on device).
|
# ? Jun 9, 2021 08:24 |
|
Pulcinella posted:This has been a good overview of all the new developer focused technologies. Nice! will check that out today. https://mobile.twitter.com/twannl/status/1402164871974817794 I don’t think we have account deletion anywhere… heh
|
# ? Jun 9, 2021 13:07 |
|
KidDynamite posted:kind of salty AsyncImage is SwiftUI only. I'll complain about that in 3 years when I can finally use it, in the meantime I'll complain about the fact that I need to support completely broken iOS 13 in SwiftUI for another year. Apple really needs the equivalent of Android's Jetpack.
|
# ? Jun 9, 2021 15:14 |
|
Simulated posted:If at all possible I highly recommend using Bonjour. It's open source (see mDNSResponder) and built-in basically everywhere at this point. We did get a response from Apple regarding our usage of multicast so hopefully we'll get a resolution soon.
|
# ? Jun 9, 2021 16:25 |
|
fankey posted:We switched from Bonjour to our own discovery method over 10 years ago. It didn't really seem sufficient for modern 3 tier networks. The main issues were (1) it's not routable without an mDNS gateway and (2) the automatic query interval increase means joining 2 'steady-state' networks can mean waiting up to an hour for devices to discover each other. Couple that with the requirement to support Windows with Apples schizophrenic support of Bonjour on Windows I think we made the right choice. It's possible we either misunderstood these limitations or they have since been addressed but it's not clear to me how anyone could use Bonjour beyond a simple flat network. Great, let me know if you have trouble getting a response and I'll see if I can find the right person to poke. I assume your users are in corp networks where different devices are on separate VLANs and that's why normal Bonjour wasn't working for you? A lot of commercial WiFi APs, routers, etc have built-in support for Bonjour proxying and management now. You can configure the rules to decide which devices on which VLANs or subsets get shared with others on the service type level, so eg you can allow APs in a specific building to proxy AirPrint advertisements from that building's printer VLAN to the whole building (via all APs and desktop VLANs) but restrict music sharing or AirPlay to be only devices connected to the same AP. Regarding #2: normally a new service announces itself when connecting so you shouldn't see a delay when browsing for new services and similarly a host looking for new services can query that at any time so it should fine them immediately despite the exponential backoff caching. Moving networks should automatically reset the local cache so if a device moves from one VLAN to another (eg by switching APs) it should clear its own Bonjour cache and there shouldn't be a delay in discovering devices on the new network. If you have specific scenarios that don't work or other concerns feel free to DM me a feedback number and I can forward this to the networking team.
|
# ? Jun 9, 2021 22:36 |
|
Is it true that I can use all the latest Swift features (like async/await) regardless of what iOS versions i support? I read somewhere that it always compiles to code supported on all iPhones, and only Cocoa Touch stuff requires related iOS version?
|
# ? Jun 10, 2021 08:54 |
|
My understanding is that Swift Concurrency relies on significant runtime support, which is only available in the new operating systems.
|
# ? Jun 10, 2021 09:42 |
|
eschaton posted:My understanding is that Swift Concurrency relies on significant runtime support, which is only available in the new operating systems. Yep: https://forums.swift.org/t/will-swift-concurrency-deploy-back-to-older-oss/49370/4 quote:That said, everyone is aware of the value of it doing so, and is something that is being explored/considered. This bit is interesting though. I hope Apple starts taking this approach.
|
# ? Jun 10, 2021 15:18 |
|
Simulated posted:Great, let me know if you have trouble getting a response and I'll see if I can find the right person to poke. Thanks for the offer. Hopefully they will respond in the next week or so. Yeah, a lot of our customers are on Cisco style 3 tier networks with lots of routing. The particular job that blew up for us was a cruise ship where every room was on it's own subnet. Not sure exactly what they were trying to solve. At the time I don't think the Bonjour routing in the switches was a thing. When a device detects a change to it it's network connectivity due to link change or AP switch it will definitely reset the interval and there aren't any issues. The problem we were seeing was due to network changes that the devices cannot detect. For example - device 1 hooked up to switch 1, device 2 hooked up to switch 2. Let that sit for an hour or so. Now connect switch 1 to switch 2. Each device will have slowed down their interval ( I think the slowest they end up at is 1 hour ) but there is nothing to inform the devices that they need to clear their cache and reset the interval.
|
# ? Jun 10, 2021 15:55 |
|
Glimm posted:Yep: https://forums.swift.org/t/will-swift-concurrency-deploy-back-to-older-oss/49370/4 The Raymond Chen approach is the superior approach and I hope apple really starts realizing the power of their devices and backwards compatibility.
|
# ? Jun 10, 2021 19:12 |
|
I'm working on a scrollable view with cards. I want the middle cards to have bigger size than the other ones, and a set of dots indicating the total number of cards and which one is currently in focus. Something like this: Is there a go-to way of doing something like this? My current plan is to use a collection with with diffableDataSource, and maybe use the sizeForItemPath to check whether the item is centered or not? uncle blog fucked around with this message at 12:50 on Jun 14, 2021 |
# ? Jun 14, 2021 12:34 |
|
I still don't understand how the Xcode 12 tab system works or what the gently caress it's doing. After a few hours of work I always have a giant pile of tabs open but I have no idea what causes it to open a new tab rather than reuse the existing tab other than that it somehow always does the exact opposite of what I want. When I actually want to switch back and forth between two files then the files are consistently in the same tab, and all the files that I open once and never look at again magically get tabs.
|
# ? Jun 17, 2021 19:09 |
|
Plorkyeran posted:I still don't understand how the Xcode 12 tab system works or what the gently caress it's doing. After a few hours of work I always have a giant pile of tabs open but I have no idea what causes it to open a new tab rather than reuse the existing tab other than that it somehow always does the exact opposite of what I want. When I actually want to switch back and forth between two files then the files are consistently in the same tab, and all the files that I open once and never look at again magically get tabs. I had a lot of trouble with the new tab system when it first came out too, so I ended up spending some time studying it and tweaking settings to try to figure out a workflow I liked. The settings are pretty unintuitive, looking at them again I couldn't tell you how they work without testing out each option again. I've built up enough muscle memory with the new system that it doesn't bother me too much anymore, but I have the same problem with tabs piling up over time. You just have to be proactive about closing them out when you're done with them, but I find that hard to keep up with in practice so I usually end up with a mess of files until it gets too annoying to deal with and I close them all. I think what's tripping you up is that when you first open a tab, it's in a special transient state indicated by an italic font for the title. If you open another file while a transient tab is open, it will replace the content of the transient tab rather than opening a new tab. Editing the file will take it out of the transient state, and it will stay open until you explicitly close it. You can also use the File > Open in Tab command (or ⌥⌘O) to do the same thing without having to edit the file. So I've gotten in the habit of running that command on each tab that I open when I know that I need to work with multiple files.
|
# ? Jun 17, 2021 20:01 |
|
dizzywhip posted:I think what's tripping you up is that when you first open a tab, it's in a special transient state indicated by an italic font for the title. If you open another file while a transient tab is open, it will replace the content of the transient tab rather than opening a new tab. I want to turn off this transient state completely. every thing should open in a new tab. can I do that?
|
# ? Jun 17, 2021 20:05 |
|
|
# ? May 15, 2024 04:39 |
|
Fate Accomplice posted:I want to turn off this transient state completely. every thing should open in a new tab. can I do that? No I don't think that's possible unless I've missed something. One thing you can do is set the navigation style to "open in place", and double-click navigation to "uses separate window tab", and you'll get the old tab behavior. Then if you open everything with a double click you'll always get a separate window tab.
|
# ? Jun 17, 2021 20:15 |