-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transformable properties issue #165
Comments
Any update? |
I dont have any. Still waiting for a response from the owner, you got the same issue? |
Yes, and I think every Graph user has the the same issue, too. I hope that the project is still alive and will be updated. A response from the owner would be appreciated.
Il 30 mar 2020, 13:27 +0200, siideffect <[email protected]>, ha scritto:
… I dont have any. Still waiting for a response from the owner, you got the same issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I hope to get some news from the owner too, since everything looks abandoned: quite time has passed since opening this thread, and any communication about the state of the repo would be greatly appreciated. |
I've deleted my xcode months ago, can't help exactly but give a try to following. Lines 163 to 165 in 9472031
Try adding following after above lines and see if it works: if #available(iOS 12, *) {
propertyValue.valueTransformerName = "NSSecureUnarchiveFromDataTransformer"
} if it does not work define following class: @objc(DefaultTransformer)
class DefaultTransformer: ValueTransformer {
override class func transformedValueClass() -> AnyClass {
return NSData.self
}
override open func reverseTransformedValue(_ value: Any?) -> Any? {
guard let value = value as? Data else {
return nil
}
return NSKeyedUnarchiver.unarchiveObject(with: value)
}
override class func allowsReverseTransformation() -> Bool {
return true
}
override func transformedValue(_ value: Any?) -> Any? {
guard let value = value else {
return nil
}
return NSKeyedArchiver.archivedData(withRootObject: value)
}
} And do: if #available(iOS 12, *) {
propertyValue.valueTransformerName = "DefaultTransformer" // or NSStringFromClass(DefaultTransformer.self), or String(describing: DefaultTransformer.self)
} |
@OrkhanAlikhanov Thank you for your response. I as well don’t have the latest Xcode, at least for 6 months now. To answer the question, whether the frameworks have died, I would say no, but it is up to the community to support it. We have been working on something new, and all our resources are aimed towards that project. We haven’t shared this publicly yet, as we did try to come up with ways for the maintenance to last on our end, but it is unfortunately not possible. |
Thank you for the answer, it worked!! I used the class way, because the first try crashes into an UIImage object. Thanks a lot. |
@DanielDahan Thanks for clarifying about the project state, I really appreciate the work you've done. Good luck for your next project, and yes, I've already subscribed to early access! |
@bbruno84 thank you! We look forward to feedback and the benefit this project can have. All the best! |
Hi, im using the latest stable version on graph im my project (i also tried development branch but the issue is there too).
Since i updated to iOS 13, i am experiencing what looks like a bad error, which i will post here:
Now some specific error: these errors are related to specific graph classes.
I have no idea on how to solve this, and where to start, but it looked like a "Hey, you need to fix me asap or i can break your app and make it unasable".
Hope you can address this in the development branch you currently are, waiting for a response from you and keep up the good work, graph is awesome.
The text was updated successfully, but these errors were encountered: