I know there are a couple of apps already in development, but I kinda want to have a go to learn how to build an app in Swift. So what are some good resources to learn?
Do you have programming experience? I can’t tell from your post if you’re looking for API resources or general programming resources. If it’s your first time programming, making an app like that might be a bit of an overwhelming first project unfortunately
Yeah, I’m a complete novice. So maybe I’ll set my sites somewhat lower…
You can start with smaller pieces of the app! Like one thing you can do is to try learning a bit of Python and play around by making simple requests to a Lemmy API to print off a list of posts from the front page.
For learning I’d recommend checking out Codecademy. I got my start with programming there like 10 years ago and I feel like I owe a lot to the website. They have fully interactive tutorials and give you a great starting point.
Good luck! :)
I’d start with the published API: https://join-lemmy.org/docs/en/contributors/04-api.html
Genuinely wouldn’t recommend it. But if you do decide to go through the pain, I generated an OpenAPI spec you can use to codegen the API in whatever language you want. I haven’t fully tested it, but it should be pretty close. I’m using it to make my own cross-platform client!
I build a Swift package for the Lemmy API: https://github.com/rrainn/Lemmy-Swift-Client.
Beyond that, the SwiftUI tutorial is fairly good: https://developer.apple.com/tutorials/swiftui/.
But just searching on YouTube and Stack Overflow about how to do things goes a long way too. Google a lot as well.
Thank you!
Swift isn’t that hard to learn, it could be a good introductory language for you.