11# ParseServerSwift
22
3+ [ ![ Documentation] ( http://img.shields.io/badge/read_the-docs-2196f3.svg )] ( https://swiftpackageindex.com/netreconlab/parse-server-swift/documentation )
4+ [ ![ Tuturiol] ( http://img.shields.io/badge/read_the-tuturials-2196f3.svg )] ( https://netreconlab.github.io/parse-server-swift/release/tutorials/parseserverswift/ )
35[ ![ Build Status CI] ( https://github.com/netreconlab/parse-server-swift/workflows/ci/badge.svg?branch=main )] ( https://github.com/netreconlab/parse-server-swift/actions?query=workflow%3Aci+branch%3Amain )
46[ ![ codecov] ( https://codecov.io/gh/netreconlab/parse-server-swift/branch/main/graph/badge.svg?token=RC3FLU6BGW )] ( https://codecov.io/gh/netreconlab/parse-server-swift )
57[ ![ ] ( https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnetreconlab%2Fparse-server-swift%2Fbadge%3Ftype%3Dswift-versions )] ( https://swiftpackageindex.com/netreconlab/parse-server-swift )
68[ ![ ] ( https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnetreconlab%2Fparse-server-swift%2Fbadge%3Ftype%3Dplatforms )] ( https://swiftpackageindex.com/netreconlab/parse-server-swift )
79
10+ ---
11+
812Write Parse Cloud Code in Swift!
913
1014What is Cloud Code? For complex apps, sometimes you just need logic that isn’t running on a mobile device. Cloud Code makes this possible.
@@ -33,7 +37,7 @@ Configure the SDK as described in the [documentation](https://netreconlab.github
3337
3438``` swift
3539// Required: Change to your Parse Server serverURL.
36- guard let parseServerUrl = URL (string : " http://localhost:1337/1" ) else {
40+ guard let parseServerURL = URL (string : " http://localhost:1337/1" ) else {
3741 throw ParseError (code : .unknownError ,
3842 message : " Could not make Parse Server URL" )
3943}
@@ -42,7 +46,7 @@ guard let parseServerUrl = URL(string: "http://localhost:1337/1") else {
4246ParseSwift.initialize (applicationId : " applicationId" , // Required: Change to your applicationId.
4347 clientKey : " clientKey" , // Required: Change to your clientKey.
4448 primaryKey : " primaryKey" , // Required: Change to your primaryKey.
45- serverURL : parseServerUrl ,
49+ serverURL : parseServerURL ,
4650 usingPostForQuery : true ) { _ , completionHandler in
4751 completionHandler (.performDefaultHandling , nil )
4852}
0 commit comments