|
My app allows you to optionally share large photos (a UIImage), which sometimes takes time to appear in the UIActivityController for whatever app you choose to share it with. The image is fully rendered and ready beforehand, from which I use a completion handler before the UIActivityController. Is there anyway to show some kind of status activity indicator until the image appears on the UIActivityController? My problem is that if I attempt to share my large image by choosing Messenger, for example, and the image has not appeared yet, and I hit Send, it will never send. My share function looks like this, and an image can be shared by calling the function like photo.share() code:
|
# ? Jul 18, 2019 21:58 |
|
|
# ? Jun 8, 2024 08:25 |
|
Does anyone know how to use custom layout groups in collection views with compositional layout? The WWDC talk mentioned that they can be used for custom layouts like radial layouts alongside horizontal and vertical layouts, but didn’t discuss how to actually do that. The sample app (which is otherwise great) also doesn’t use NSCollectionLayoutGroupCustomItem and there is basically no documentation on Apple’s website.
|
# ? Jul 19, 2019 00:06 |
|
Good Sphere posted:My app allows you to optionally share large photos (a UIImage), which sometimes takes time to appear in the UIActivityController for whatever app you choose to share it with. The image is fully rendered and ready beforehand, from which I use a completion handler before the UIActivityController. Is there anyway to show some kind of status activity indicator until the image appears on the UIActivityController? My problem is that if I attempt to share my large image by choosing Messenger, for example, and the image has not appeared yet, and I hit Send, it will never send. Does UIActivityItemProvider not work for you? Pass a thumbnail image for the placeholder data. Or you can use the UIActivityItemSource if you want more control.
|
# ? Jul 19, 2019 01:00 |
|
Simulated posted:Does UIActivityItemProvider not work for you? Pass a thumbnail image for the placeholder data. Or you can use the UIActivityItemSource if you want more control. Thanks for your response. I'm not sure why I'm having such a hard time finding out how this works. An example I found for UIActivityItemProvider confuses me because I don't need a url of the image. The image is already stored as a UIImage, so can't I just share that while also providing a smaller thumbnail? As with UIActivityItemSource, I'm not sure how it will give me more control, or that I should be even using it. According to the docs: quote:Because the methods of this protocol are executed on your app’s main thread, you should avoid using this protocol in cases where the data objects might take a significant amount of time to create. When creating large data objects, consider using a UIActivityItemProvider object instead. UIActivityViewController can work by itself, but if it's a large image, I need to wait for the thumbnail to appear, depending on the app I choose to share with. Sharing to some apps, like Mail have no issue. For instance, if I select Facebook's Messenger app to share a large image, the thumbnail appears blank: If I don't wait for the thumbnail to appear, select a person, and hit send, a progress bar will show up top, but never complete. I can pass what is claimed to be a thumbnail through the applicationActivities parameter, but it seems to have no effect, no matter what image I put in there when I make my own UIActivity class and override var activityImage:UIImage?
|
# ? Jul 19, 2019 17:37 |
|
I wrote some server-side Swift this weekend for the hell of it with Vapor - seems pretty decent so far but it's still quite nascent. I feel like it's a nice, good language, but it lacks the "need" to use it because there are plenty of already really good languages out there for writing services. Swift worked really well back when it was replacing Objective-C for app development but I'm already really missing all of the out of the box that Rails/DRF provide.
|
# ? Jul 29, 2019 14:50 |
|
Plus a lot of great libraries are not open-source so that kind of takes the wind out of those sails for now. But Lattner's at Google, so here's to hoping they can help make Swift less Apple-only.
|
# ? Jul 30, 2019 12:25 |
|
Me: “hey this component is only used on Mac so I could use SwiftUI for it!” Release notes: quote:Xcode 11 doesn’t support working with SwiftUI in a Mac Catalyst app.
|
# ? Aug 1, 2019 21:04 |
|
edit: n/m
Good Sphere fucked around with this message at 19:25 on Aug 5, 2019 |
# ? Aug 5, 2019 18:18 |
|
Simulated posted:Does UIActivityItemProvider not work for you? Pass a thumbnail image for the placeholder data. Or you can use the UIActivityItemSource if you want more control. After taking some time to try to understand how to set the placeholder data, and had no differences in making the thumbnail appear quickly. It looks like it's still generating a thumbnail from the high quality image. Maybe I'm not doing it correctly? My subclassed UIActivityItemProvider: code:
code:
|
# ? Aug 7, 2019 17:34 |
|
Can anyone running a Catalina beta tell me if C++17’s std::aligned_alloc is supported, pretty please?
|
# ? Aug 8, 2019 15:07 |
|
it’s not the OS that supports it, it’s the C++ standard library so just download the latest Xcode 11 beta and check
|
# ? Aug 10, 2019 05:31 |
|
eschaton posted:it’s not the OS that supports it, it’s the C++ standard library Plorkyeran posted:The libc++ runtime library is shipped with the OS so everything that isn't purely header-only requires new OS versions. Supporting new language features on older OSes seems to not be a priority at all for Apple, as Swift is now doing the same thing.
|
# ? Aug 10, 2019 13:07 |
|
Star War Sex Parrot posted:Based on discussion last week... I do wish that at least the Swift 5.1 standard library was the one that would get bundled with older OS versions rather than 5.0. We have to support the current iOS release and previous ( and some projects require even X-2 or more ). It would have been nice to use Ordered Collection Diffing as a substitute for Diffable Data Sources on older OS versions. Also I’ve done some more experimenting with compositional layouts and it seems that with NSCollectionLayoutGroupCustomItem you have to set all frames yourself. So it’s custom layout but in a very limiting way. You just pass in a CGRect so I don’t even think you can rotate them. I still need to see if the regular layout methods (e.g layoutAttributesForItem(at:)) work with compositional layouts. Pulcinella fucked around with this message at 16:14 on Aug 10, 2019 |
# ? Aug 10, 2019 16:04 |
|
Star War Sex Parrot posted:Based on discussion last week... In this specific case it’s a C11 thing that got pulled into C++17. macOS has had a C11 standard library for a long time, so the only change needed is to expose it in c++ mode. Since that’s purely a header thing, it should just be the Xcode version that matters.
|
# ? Aug 10, 2019 21:04 |
|
This whole "Your app can't know the wifi SSID" thing in IOS 13 is going to really gently caress us at work. Our app is for flashing bios on our IOT controllers and part of it involves scanning SSIDs looking for it when out of the box. We're kind of scratching our heads wondering how to proceed on this one. Theres one alternative that has the device start its own WIFI hotspot, unfortunately some fuckhead put a patent on "IOT device has its own hotspot". because clearly thats a novel idea Is there a way to contact apple and get clarification on the change and what the exceptions (apparently VPN apps might) will be?
|
# ? Aug 11, 2019 01:51 |
|
duck monster posted:This whole "Your app can't know the wifi SSID" thing in IOS 13 is going to really gently caress us at work. Our app is for flashing bios on our IOT controllers and part of it involves scanning SSIDs looking for it when out of the box. We're kind of scratching our heads wondering how to proceed on this one. Theres one alternative that has the device start its own WIFI hotspot, unfortunately some fuckhead put a patent on "IOT device has its own hotspot". because clearly thats a novel idea Does this help? quote:The first step is in Xcode you have to add the capability to access Wi-Fi information to add the entitlement to your project, and then your app must meet one of three other criteria. From https://asciiwwdc.com/2019/sessions/713
|
# ? Aug 11, 2019 02:31 |
|
Sometimes if I'm going through 2FA and I'm prompted to enter a PIN, the ios keyboard will suggest the number I just got in a text, like this: Which is cool. Is there a name for what's causing this prompt/suggest? I'm trying to learn more about it and what I can do with it. For example I only know of it working through the Messages app, and I wonder if suggestions can come from a non-ios app, or the clipboard.
|
# ? Aug 16, 2019 21:15 |
|
https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_a_text_input_view You can hook it up to a password management app, but I’m pretty sure the 2FA code bit is only supported via messages.
|
# ? Aug 16, 2019 22:25 |
|
I just want batteries.
|
# ? Aug 18, 2019 17:01 |
|
jackpot posted:Sometimes if I'm going through 2FA and I'm prompted to enter a PIN, the ios keyboard will suggest the number I just got in a text, like this: I noticed recently some of our devices offering to put wifi passwords into other text boxes. Not sure if this is "user did a stupid" or "device is doing a stupid" on this one yet. But if its device stupid, its a goddamn horrible security leak
|
# ? Aug 19, 2019 07:06 |
|
How can you rewrite EXIF data on videos in Swift? I probably posted about this at least one other time, but it's still haunting me, after two years. I recently commented out code that I thought was causing the problem of videos being flipped upside down when sent from my iPhone app to Facebook or Messenger, but it turns out I needed it for selfie videos to be correctly horizontally flipped code:
- front-facing videos that were flipped with the code above will change the "Matrix Structure" attribute with "0 -1 0 -1 0 0 -1280 0 1" - back-facing videos untouched will have a "Matrix Structure" attribute of "0 -1 0 1 0 0 1280 0 1" The "rotation" attribute is the same between both videos. This means some applications depend on the rotation attribute for playback/encoding and some depend on the Matrix Structure. Applying a transform on AVAssetWriterInput does not alter the "Matrix Structure" attribute, so for the love of god, I need to do overwrite this with my own custom value! But at least when I'm finished making an AVMutableComposition with the AVAsset, there is no metadata I can find: code:
Good Sphere fucked around with this message at 23:13 on Sep 3, 2019 |
# ? Sep 3, 2019 23:05 |
|
Think this is an Xcode problem more than a Git one, so posting here. Why does Xcode have two source controls even though I only have one? I have a Github origin, and pushing to both of them updates the origin, but only one gets updated within Xcode. Anyone run into this? Fixes?
|
# ? Sep 5, 2019 04:35 |
|
Dunno if this constitutes a solution, but I've always just done all my source control stuff with the cli. The Xcode interface scares me.
|
# ? Sep 5, 2019 04:48 |
|
Stringent posted:Dunno if this constitutes a solution, but I've always just done all my source control stuff with the cli. The Xcode interface scares me. This + GitUp if I want to do stuff like splitting a big rear end WIP commit into reasonable commits
|
# ? Sep 5, 2019 05:16 |
|
How many remotes do you have?
|
# ? Sep 5, 2019 05:30 |
|
Just the one. I tried just deleting .git from my project folder, but one of the repositories still remains. My theory is that somewhere buried in a subfolder is another local .git repo...
|
# ? Sep 5, 2019 06:32 |
|
I have an app that works fine in the emulator, fine on my device connected to XCode but fails when running the exact same codebase via TestFlight. Is there a way to reproduce what is being run via TestFlight without going throught the whole cycle of uploading the app, etc? The app draws a bunch of stuff via CoreGraphics and in this case fail means doesn't draw all the elements.
|
# ? Sep 5, 2019 17:32 |
|
Sounds like something is getting cut out when compiling in release mode. Those are tough bugs.
|
# ? Sep 5, 2019 18:46 |
|
fankey posted:I have an app that works fine in the emulator, fine on my device connected to XCode but fails when running the exact same codebase via TestFlight. Is there a way to reproduce what is being run via TestFlight without going throught the whole cycle of uploading the app, etc? The app draws a bunch of stuff via CoreGraphics and in this case fail means doesn't draw all the elements. Switching the build configuration in your scheme to your production config might help.
|
# ? Sep 5, 2019 19:59 |
|
lord funk posted:Just the one. I tried just deleting .git from my project folder, but one of the repositories still remains. My theory is that somewhere buried in a subfolder is another local .git repo... find path/to/project -name .git
|
# ? Sep 5, 2019 21:31 |
|
Glimm posted:Switching the build configuration in your scheme to your production config might help. That worked - I can now reproduce bad behavior in the simulator. Now the problem is I have no idea what's going on. It's probably something obvious but here's my code. code:
code:
|
# ? Sep 5, 2019 22:15 |
|
rjmccall posted:find path/to/project -name .git This worked. There were no more .git projects in the folder, but it was including one that was a directory next to the containing directory of the project. ✅
|
# ? Sep 6, 2019 00:35 |
|
Digging into this more, this codecode:
code:
|
# ? Sep 6, 2019 17:08 |
|
It’d probably be a good idea to clamp some of those values to sane ranges before doing any math on them, like maybe not allowing sizes smaller than 1 or something. edit: also, you're mixing doubles, floats, and integers. There's bound to be an unintended precision problem because of this. rc.origin.y is a CGFloat, which is typedef'ed to double on 64-bit platforms, not float. So your cast would need to be to a uint64_t, and your format string needs %016llx edit 2: using your supplied values, I can't get your results, even compiling with -O3 and -ffast-math edit 3: even plugging in your hex NaN value for Y, printf() shows 2143289344.0 set a breakpoint somewhere in there and see where the NaN is coming from; they're like viruses, and will "infect" all downstream math. Doc Block fucked around with this message at 19:02 on Sep 6, 2019 |
# ? Sep 6, 2019 18:22 |
|
Doc Block posted:It’d probably be a good idea to clamp some of those values to sane ranges before doing any math on them, like maybe not allowing sizes smaller than 1 or something.
|
# ? Sep 7, 2019 00:25 |
|
What do you all use for crash reporting? I'm re-integrating Crashlytics, but don't really like having to go through all the Google Firebase stuff to do it. Is there a more lightweight option out there that's good?
|
# ? Sep 10, 2019 03:07 |
|
I’m riding the non-Firebase Crashlytics train into the sunset, then I’ll probably just rip it out and scavenge on App Store Connect.
|
# ? Sep 10, 2019 05:09 |
|
Yeah, I really don't like that we went from Crashlytics >> Fabric >> Firebase ANALYTICS TRENDS A/B TESTING BUSINESS GROWTH
|
# ? Sep 10, 2019 06:05 |
|
AppCenter crash reporting might be decent by then, if that’s more palatable than Firebase.
|
# ? Sep 10, 2019 13:53 |
|
|
# ? Jun 8, 2024 08:25 |
|
Is there any way to make Xcode's breakpoints work consistently? I'm getting to the point of building my project up to 5 times before breakpoints actually work.
|
# ? Sep 10, 2019 16:39 |