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
-
Parse-Swift
provides 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-OSX
and 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-OSX
in development time. There's one feature theParse-SDK-iOS-OSX
SDK has thatParse-Swift
doesn't and that's a local CoreData store. The CoreData store inParse-SDK-iOS-OSX
has a number of noted issues (more in #69) and can't be used when cache is enabled. The caching system inParse-Swift
is 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-OSX
toParse-Swift
will 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-OSX
to provide a seamless experience for your users.Parse-Swift
makes 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 Navigator
panelPackage Dependencies
tabDependency Rule
, selectUp to Next Major Version
and input5.1.1
for the specific version and< 6.0.0
PFUser
andPFInstallation
User
andInstallation
model that conform toParseObject
PFUser->User
using loginUsingObjCKeychainPFInstallation->Installation
using becomeBeta Was this translation helpful? Give feedback.
All reactions