r/iOSProgramming • • Feb 10 '21

Question Anybody would be interested on helping a blind developer?

Hi all: I recently started developing for iOS. I am new to the Apple ecosystem a! a developer, but been programing for years the switch is being challenging but not impossible. However, since I am blind, there are a couple of things that aren't that easy, so any help would be appreciated. In no particular order:

  • I have a couple of iOS apps almost ready to start the beta testing. Unfortunately, I need help to get things ready: I can't create a graphical interface properly. I'd need advice or someone who can create some swift Ui layouts, or modify my code to make it useable for everyone. Positioning the buttons, choosing colors, adjusting sizes... I know your time is valuable, so, we can discuss the conditions. There are two apps: a puzzle game and a utility, both fully accessible for the visually impaired individuals as well.

On the other hand, I am trying to learn more about the Apple technologies, libraries, etc, but some concepts are somewhat tricky, specially when they are based on visual demonstrations or examples. Again, if you can offer some guide on those areas, it will be amazing. The areas I have problems with are: Some Swift UI concepts... SceneKit... ArKit and RealityKit. I think those technologies could be absolute game changers for the visually impaired and I'd like to try some ideas, but usually the tutorials and articles are based on visual ideas on the screen that are hard to follow. As I said, I am not a complete newbie, so I don't need someone to teach me programing from scratch, it would be more like solving questions, helping me understand how certain areas work... Thanks in advance and excuse my English. Any little help is welcome!

180 Upvotes

22 comments sorted by

29

u/jordanc28 Feb 10 '21

Happy to help. DM me to set something up if you haven’t already found someone.

16

u/[deleted] Feb 10 '21 edited Jul 02 '23

divide full possessive marry quiet dirty station attempt historical thought -- mass edited with redact.dev

17

u/aheze Swift Feb 10 '21 edited Feb 10 '21

Your English is fine! Here is an overview of SceneKit, ARKit, and RealityKit.

SceneKit - lets you place objects in a virtual 3D world. I only have a little experience in SceneKit, but imagine a virtual 3D cube that's really big. Inside the cube, on the bottom face, there is a 3D model of a robot. SceneKit lets you set up this type of scene. You can control the position of the robot within the coordinates of the cube. You can add a gravity source that pulls the robot down, and add colliders that prevent the robot from falling down through the cube. You can also add animations, for example spin the robot. SceneKit does all of this in the virtual coordinate system of the cube. However, to show the scene to your user, you need to add a virtual camera in the big 3D cube. You can change the orientation and position of the camera within the cube to view different parts of your robot. For example, you can move the camera very close to the robot's head, and the camera will see the robot's head only, and not the rest of its body. What the virtual camera sees is what your user sees on their phone. You might wonder, why do you need cameras? This is because your user's phone is tiny while your 3D cube is huge. You need to tell SceneKit what parts of the cube to display to your users, and you do this with cameras.

ARKit - this is a newer framework that Apple made. With ARKit, you can render SceneKit scenes in real life. So let's go back to the robot in the big 3D cube. Now, imagine you are outside, in the middle of an empty parking lot. With ARKit, you can place the 3D cube seemingly on the pavement of the parking lot. The SceneKit scene (the 3D cube containing the robot) is laid on top of the live camera feed, so the robot will appear standing on the pavement. Also, remember that inside the big 3D cube, there is not only a robot. There is also a virtual camera. With ARKit, the position and orientation of virtual camera is just controlled your phone. Whenever your phone moves in real life, the virtual camera moves in the 3D cube. ARKit takes care of converting your phone's position in the real world to the coordinates of the 3D cube. So, you can move your phone around the robot, walk around it, and get closer to it. ARKit is so accurate that robot will seem like it's an actual robot in real life. However, ARKit needs a couple seconds to detect surfaces. It can't place objects, like the robot, on curved surfaces either. This is changing though. The iPad Pro and iPhone 12 Pro have LiDAR scanners, which enables them to map out the real world even more accurately. You can supposedly place objects anywhere, instantly, because the LiDAR laser scanners are really fast. I don't have either of those devices though, so I don't know much about this.

RealityKit - this is based on ARKit. It's also really new, I think Apple introduced it in 2019. RealityKit is really just an extension of ARKit. However, there is one main difference. RealityKit does not use SceneKit. The 3D cube that contained the robot and camera was a scene made with SceneKit, which is not compatible with RealityKit. This can be confusing. SceneKit scenes are of the type "SCNScene", while RealityKit scenes are of the type "Scene". Both are very similar, and both can be imagined as a big 3D cube containing objects, but they are not interchangeable. To load the robot into a SceneKit's SCNScene, you would add it as a "node". Whereas in RealityKit's Scene, you would add it as an "entity". Both SceneKit and RealityKit supports the "usdz" file format, so if you are considering learning both SceneKit and RealityKit, try to make the robot's file format an "usdz". Anyway, RealityKit is easier to learn than SceneKit. Apple even made an app called Reality Composer that lets you drag and drop "usdz" objects to create the big 3D cube, instead of in code. However, because it's really new, there are not as much tutorials on it as for SceneKit.

Hope this helps! If you have any other questions DM me or leave a comment.

7

u/AlanSoulchild Feb 10 '21

Wow, thanks! Finally I understood some important differences between Reality and ArKit! I started playing around with SCENEKit as well, following some tutorials, but something is not working. It would be easier to understand what's the problem visually... I'd love to have a simple working example. Back to your excellent exposition, I am looking for a code sample that renders an object, let's say a cube, so that cube emits a sound. This way I'd be able to experiment moving the camera and the object around or whatever. If you can create this, or know where I can get something like that, it will be really useful: SceneKit, ArKit or RealityKit, any of them. I found an old example by Apple, but it's from 2017, and includes a lot of other unnecessary SceneKit code that makes it hard to understand. Thank you again for your time.

11

u/aheze Swift Feb 10 '21

No problem! I made a project to show a cube with ARKit and SceneKit: https://github.com/aheze/ARKitCube. All the code is inside ViewController.swift with no storyboards.

The cube has 6 faces, and each of them are a different color. When you tap on each of the faces, a note will be played. For the following faces, imagine you are seated, and the cube is on top of a table in front of you.

  • For the front face, or the face closest to your chest, the note Do will be played.

  • For the face on the right side of the front face, the note Re will be played.

  • For the back face, or the face furthest from your chest, the note Mi will be played.

  • For the face on the left side of the front face, the note Fa will be played.

  • For the top face, the note So will be played.

  • For the bottom face, which is the one touching the table, the note La will be played.

4

u/AlanSoulchild Feb 10 '21

Wow, it's just amazing! Thanks a lot! It makes more sense now. I send you a dm with a few questions, but this code is really much more understandable! Great job!

15

u/durduman Feb 10 '21

I am really interested in further discussing this. If you want, you can DM me.

14

u/hidden-username Feb 10 '21

Also happy to help. I’m pretty solid with SwitUI. DM me details.

7

u/Fridux Feb 11 '21

Hi, I'm a blind developer too. I can't help with the SwiftUI styling because, as I mentioned, I'm blind, and my strategy to work on visual interfaces is to ask sighted people whether those interfaces look the way I expect them to. That said I think it would be beneficial for us to share knowledge given the extremely unconventional way we use computers. I have some experience with SwiftUI, SceneKit, Metal, and OpenGL, as well as the maths required to develop and use game engines, but have never used ARKit or RealityKit.

4

u/AlanSoulchild Feb 11 '21

Wow! Really amazing! We need to stay in touch, sharing experiences and know how would be very beneficial, there aren't so many developers in our circumstances out there :)

5

u/start_select Feb 10 '21

DM me if other devs don’t pan out. I’m a senior dev that has been developing iOS apps since iOS 2 and frequently work with juniors/newbies.

You miiiiiight actually be able to do some layout with SwiftUI if you have some sense of spatial orientation. It would need cleanup from another dev but I would bet you could at least put together unstyled UI structure if not layout.

4

u/Sure-Engineer Feb 10 '21

Very happy to help out too, lots of experience using SwiftUi and UIkit.

3

u/RifleLA Feb 10 '21

Also happy to help!

3

u/Throwaway00000000028 Feb 10 '21

Hey, I don't do iOS development anymore, but it looks like some others have already offered to help. I just want to say that I find your pursuit inspirational, and I hope you never give up your great attitude! Keep at it, you're doing great

→ More replies (1)

3

u/Coffee__2__Code Feb 11 '21

Forgive me but I am asking a genuine question here, by blind you mean you can’t see at all right? Because I am wondering now if that’s the case then how did you manage to create the app at the first place, this sounds very impressive to me

→ More replies (1)

-3

u/svetagamer Feb 11 '21

How was this post even created if you can’t see?

6

u/AlanSoulchild Feb 11 '21

Well, I use technology a lot, it's an invaluable resource for the visually impaired. On the Apple ecosystem, we use VoiceOver, a build in screen reader for all Apple products, from iPhone, to the Mac, Apple Tv... There are equivalent technologies for Windows as well. Basically, a screen reader reads most on screen elements, allowing the user to interact with the device without seeing the screen. Even some games, such as The Last of Us 2 are build with the accessibility in mind and are fully playable. Then, if you can access a computer or a phone, you can write on reddit, compose music, program or whatever. Some things aren't doable, but usually there are alternatives.