Replies: 2 comments 2 replies
-
|
@ashish-naik if you are migrating your project from the Objective-C SDK, this discussion may be of interest to you. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Parse-Swiftprovides a modernized Swift SDK that allows developers to take advantage of the latest and greatest Swift and SwiftUI has to offer (SwiftUI, Combine, async/await, etc). In addition, Parse-Server 6.0.0+ has been released which has a number of feature additions for querying, live-queries, etc. Parse-SwiftOG is miles ahead of theParse-SDK-iOS-OSXand by my estimates (I have a solid understanding of all of the major Parse Client SDK's), I would say Parse-SwiftOG 2+ years ahead ofParse-SDK-iOS-OSXin development time. There's one feature theParse-SDK-iOS-OSXSDK has thatParse-Swiftdoesn't and that's a local CoreData store. The CoreData store inParse-SDK-iOS-OSXhas a number of noted issues (more in #69) and can't be used when cache is enabled. The caching system inParse-Swiftis native and far better than the custom caching system inParse-SDK-iOS-OSX. I discuss a better way to Parse-Swift with local storage in #69.Migrating your project from
Parse-SDK-iOS-OSXtoParse-Swiftwill take some work as the frameworks are completely different along with the design philosophy (see more in README). Nonetheless, migrating your project is possible (see discussion). After converting the code, you will most likely want to access the Keychain fromParse-SDK-iOS-OSXto provide a seamless experience for your users.Parse-Swiftmakes this easy, please see the information here and here to learn about the methods available to migrate toParse-Swift. An example application that demonstrates how to convert from the Objective-C SDK to the Swift SDK can be found at ParseMigrateKeychain. Specifically, look at ContentViewModel.swift for code examples. The basic steps are below:Project NavigatorpanelPackage DependenciestabDependency Rule, selectUp to Next Major Versionand input5.1.1for the specific version and< 6.0.0PFUserandPFInstallationUserandInstallationmodel that conform toParseObjectPFUser->Userusing loginUsingObjCKeychainPFInstallation->Installationusing becomeBeta Was this translation helpful? Give feedback.
All reactions