 			}
 		}
 	}
+
+	func notifyCKAccountStatusNoAccount() {
+		if ( !ignoreCKAccountStatusNoAccount )
+		{
+			let alert = UIAlertController(title: "No iCloud Account", message: "An iCloud account with iCloud Drive enabled is required for iCloud sync.", preferredStyle: .alert)
+			alert.addAction(UIAlertAction(title: "Preferences", style: .default, handler: { (_) in
+				if #available(iOS 10.0, *)
+				{
+					// Opens iCloud Prefs < iOS 11.0, main Prefs >= iOS 11.0
+					UIApplication.shared.openURL(URL(string: "App-Prefs:root=CASTLE")!)
+				}
+				else
+				{
+					UIApplication.shared.openURL(URL(string: "prefs:root=CASTLE")!)
+				}
+			}))
+			alert.addAction(UIAlertAction(title: "Ignore", style: .cancel, handler: { (_) in
+				self.ignoreCKAccountStatusNoAccount = true
+			}))
+			self.present(alert, animated: true, completion: nil)
+		}
+	}
 }
 

		//UserDefaults.standard.set(NSNumber(value: true), forKey: "demoForAppStoreScreenshots")
		// Use this command to get screenshots:
		// while true; do xcrun simctl io booted screenshot;sleep 1;done

		if ( UserDefaults.standard.bool(forKey: "demoForAppStoreScreenshots") )
		{

	var pbCount:Int = -1
	var rememberedSyncSettings:Bool = false
	var rememberedSyncClippings:Bool = false
	var ignoreCKAccountStatusNoAccount = false

	let pasteboardInteractionQueue = DispatchQueue(label: "com.Flycut.pasteboardInteractionQueue")
	let alertHandlingSemaphore = DispatchSemaphore(value: 0)
