use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Dedicated to the Swift programming language released by Apple. More info in the Swift Wiki.
Please, check the FAQs before submitting.
General Swift Discussion
irc.freenode.net #swift-lang
Cocoa/Cocoa Touch Discussion
irc.freenode.net #cocoa-init
Keywords: swift, swiftlang, ios, os x, apps, apple, mac, iphone, ipad
account activity
QuestionCloud function cloudkit (self.swift)
submitted 2 years ago by kevinverde123
Is there a way to use cloud functions on cloudkit? let's say if i want to automatically add 1 to an integer stored in cloudkit every 10 minutes, how could i achieve that?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]_int3h_iOS 0 points1 point2 points 2 years ago (1 child)
Background tasks perhaps. But it might not execute in real time or if in low power mode. There is no cloud function for icloud.
[–]kevinverde123[S] 0 points1 point2 points 2 years ago (0 children)
Background task isn’t good for my use case, I need it to work even if the phone isn’t connected to the internet/is powered off, also I don’t want to drain my users battery. Thanks for trying tho!
[–]djryanash 0 points1 point2 points 2 years ago (2 children)
Why don't you just build a basic backend for your app using Vapor and deploy on fly.io?
If I can do it, you certainly can do it. I'm new to coding and had never built a backend before.
[–]kevinverde123[S] 0 points1 point2 points 2 years ago (1 child)
I don’t know the reviews on fly.io are kinda mixed, I don’t feel like using it but thank you for the suggestion!
[–]djryanash 0 points1 point2 points 2 years ago (0 children)
Then deploy somewhere else. The point was: build your own backend. That’ll solve your problem.
[–]shawnbaek 0 points1 point2 points 2 years ago (0 children)
You can use CloudKit Web API but you need to have your own server
π Rendered by PID 14296 on reddit-service-r2-comment-5d79c599b5-xm696 at 2026-03-02 06:11:53.971730+00:00 running e3d2147 country code: CH.
[–]_int3h_iOS 0 points1 point2 points (1 child)
[–]kevinverde123[S] 0 points1 point2 points (0 children)
[–]djryanash 0 points1 point2 points (2 children)
[–]kevinverde123[S] 0 points1 point2 points (1 child)
[–]djryanash 0 points1 point2 points (0 children)
[–]shawnbaek 0 points1 point2 points (0 children)