r/iOSProgramming • u/[deleted] • Apr 15 '22
Humor What it’s like opening up documentation from anyone besides Apple
3
u/Equivalent_Cookie_ Apr 15 '22
Is there any way we can collaboratively write documentation for Swift/SwiftUI?
2
Apr 15 '22
There's Swift On Tap, which is pretty useful. There are probably a few other sites like that. But other than that, Stack Overflow and Medium articles are probably the easiest way to collaboratively cover their APIs.
3
u/javaHoosier Apr 15 '22
SwiftUI Companion app is incredible.
But its expensive. Also just the articles and repos that Javier posts are next level.
4
Apr 15 '22
Wow, this is kind of blowing up. I'm happy I'm not alone on this lol, I appreciate the love. Fingers crossed Apple announces plans to rework their documentation at WWDC22!!
Of course, a shameless plug: I'm working on a file inspector app for macOS! I'm in the process of updating it so it's not out yet but I'm getting close! You can check it out here → https://informant.so
2
Apr 17 '22
This looks very handy, awesome tool!
2
Apr 17 '22
Thank you! It’s been a lot of work to get right :)
2
Apr 17 '22
I can imagine, I’m working on my first app right now so definitely understand that 😅 how long have you been working on it?
2
Apr 17 '22
Oh good job! What is it?
-- it originally took four months for an initial release and it’s going to take about two months for a re-release. So six months total so far
2
Apr 17 '22
I could tell you… but I’d have to kill you. Jk, in essence it’s a bi-directional booking app that can suggest times and places for people to meet based on their location and availability. In way over my head as a beginner but gotta start somewhere!
Nice going. Is this a side project for you?
2
Apr 17 '22
That’s an awesome idea! It sounds like it’d be a better alternative to Google Map’s events. It’s good to work on something a little bit outside your comfort zone!
— it started as a side project but I’m putting a lot more time towards it now!
2
Apr 17 '22
Thanks! Reassuring to hear people think it’s a decent idea, guess we’ll see how it turns out. Best of luck with the remainder of the project
1
10
u/noahflk Apr 15 '22
Every year Apple hypes up developers at WWDC like no other but their developer experience is, well...
-9
u/hkmn444 Apr 15 '22
I’m an iOS developer and I can find anything I want regarding a specific object / api by searching the documentation. What exactly is bad in Apple doc ?
11
u/Barbelleatsdumbbell Apr 15 '22
I think it's something that becomes noticeable when you have experiences with docs from other languages. With python and js, the docs are way more descriptive, often provide examples, and you leave understanding what you read.
With Apple, the docs are often just the function signature or a vague one liner. And boy did SwiftUI 1.0 docs feel like satire.
4
Apr 15 '22
I was looking at the docs for Electron and that’s what prompted me to make this meme. I couldn’t believe how detailed they were
28
u/flad-vlad Apr 15 '22 edited Apr 15 '22
Many API are not documented at all, especially once you start venturing out of UIKit and Foundation. A lot of people complain about this.
The documentation for many symbols is useless and just paraphrases the long Cocoa-style name (eg NSStringDrawingOptions.usesLineFragmentOrigin or NSQueryGenerationToken, both of which are useful API but good luck determining what they actually do from their descriptions because neither are common knowledge)
The documentation that does exist is often lacking. For example if you want to learn how to use a framework like Core Data you have to turn to 3rd party tutorials or books, which are often outdated or flat-out wrong, because even though NSManagedObject, NSManagedObjectContrext, NSPersistentStore, etc all have some documentation there isn’t much that tells you how you use them together.
There are so few pictures in the UI frameworks’ documentation. For example there aren’t even colour swatches for the predefined UIColors and the description for UIProgressView.Style.default is simply “The standard progress-view style”.
The documentation is spread out across a variety of mediums and locations, many of which aren’t accessible from Xcode. There also are so many important bits of information hidden in WWDC videos or Quinn the Eskimo forum posts or random devs’ tweets that aren’t easy to find.
Some documentation is just plain bad or even wrong (see Grand Central Disptch for example)
It’s not easy to search within documentation articles, which makes it hard to find out what features a framework actually has.
Error codes are such a pain to search for because you have to click each one to see its integer value, and because ObjC enum case names can’t be printed. I also encounter a lot of error codes that don’t exist in the documentation at all.
9
Apr 15 '22
lol, I got help from Quinn the Eskimo one time and they totally saved my ass — Quinn the Eskimo is a god amongst us mere mortals
116
u/JamesFutures Apr 15 '22
I feel this. Apple documentation is some of the most useless documentation I’ve ever had the displeasure of reading.
I started on Android. At the time, I thought Google documentation was bad… oh boy.
Apple is so interesting. Swift is just awesome. SwiftUI is a breath of fresh air. Working with that technology is so nice and pleasant. But what IDE do you have to work in? Xcode. The worst IDE I’ve ever touched by a significant margin. What documentation do you have to read? Apple docs. Which provide almost zero useful information.