Wednesday, June 29, 2022
HomeiOS Developmentios - Swift: obtain repository by way of Octokit

ios – Swift: obtain repository by way of Octokit


I’ve an iOS undertaking that processes .svg recordsdata. I would prefer to convert it to make use of recordsdata on Github as a substitute of native file storage, equivalent to Information. The undertaking extracts information from svg’s and shops them in a CoreData desk.

I’ve gotten Octokit working high-quality, and discovering my goal repo, however I am on the level the place I’ve to determine the best way to deal with the repo. What occurs now could be the app scans the app listing for recordsdata which have an .svg extension.

What I need to do is substitute the repo for the file system, and that is the place I am not clear. Since no git performance is required in app, I solely want the contents of the recordsdata, not the git-related recordsdata and information. I subsequently want to keep away from the filesystem altogether: pull the recordsdata out of the repo, extract the textual content svg information into reminiscence, after which toss them.

I am unsure how I do that… any tips on what a pipeline would appear like and the best way to implement it in Swift?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments