Post not yet marked as solved
SwiftData doesn’t preserve order of arrays .. is that the expected behavior?!
Hi there, I am trying to do the same, with the Twitter API, however their first step of the OAuth flow seems to require a POST request, and I don't believe that ASWebAuthenticationSession gives that option. Would you confirm it is not possible to authenticate with the twitter API through ASWebAuthenticationSession ?
Post not yet marked as solved
I'm in the same boat here, and the error isn't very indicative of how we can solve the problem.
Swift Package Manager in tools 5.3 does support Metal compilation like others said. However this is for pure non-CoreImage metal files. If you need to add Metal Compiler Flags -fcikernel and Metal Linker Flags -cikernel, it seems you need to compile your metal files manually. And note that currently you can't have both non-CoreImage metal code and CoreImage metal code in the same library... it seems the core image flags ****-up the non-CoreImage code...
How do you declare all this in Swift Package Manager ?
Post not yet marked as solved
I am interested in this as well..
Post not yet marked as solved
I did file a feedback (FB6142464) with a sample project attached.
Post not yet marked as solved
What is your issue exactly ?For namespace coreimage you need the following import in the metal file :#include <metal_stdlib>
using namespace metal;
#include <CoreImage/CoreImage.h> // includes CIKernelMetalLib.hI don't think you need any of the MTLCreateSystemDefaultDevice lines from your post. Initialization a CIColorKernel(.., fromMetalLibraryData: ..) should work just fine with the data like you are doing.Is you metal file properly added to the target ?You need the following flags set in build settings :Other Metal Compiler Flags: -fcikernelAdd a user-defined setting: MTLLINKER_FLAGS with value -cikernelIt will run fine on device, however I am filing a bug for simulator, see this topicLast thing. if then it doesn't compile, the issue might come from your metal shader, in which case feel free to share it or start with something simple like this (this one removes the green color, should have something purple-ish) :#include <metal_stdlib>
using namespace metal;
#include <CoreImage/CoreImage.h> // includes CIKernelMetalLib.h
extern "C" { namespace coreimage {
float4 colorTransform(sampler src) {
float4 color = src.sample(src.coord());
return float4(color.r, 0.0, color.b, 1.0);
}
}}Hope this helps.
Post not yet marked as solved
With iOS 13 it seems like it's changing, but i do have an issue : https://forums.developer.apple.com/message/363736#363736Would you have an answer for me @wcm ?