// Initialize the Cognito Sync client
let syncClient = AWSCognito.defaultCognito()

var dataset = syncClient.openOrCreateDataset("MyDataset")
dataset.setString("myValue", forKey:"myKey")
dataset.synchronize().continueWithBlock {(task) -> AnyObject! in
	if task.cancelled {
		// Task cancelled.
	} else if task.error != nil {
	// Error while executing task
	} else {
		// Task succeeded. The data was saved in the sync store.
	}
	return nil
}