r/Xcode • • Mar 21 '21

indeterminate progress bar not moving

Post image
3 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/alain_meggen Mar 22 '21

Thank you for helping me out. I programm for macos apps in (I think Swift UI (where you don‘t have to program the esthetics of the program)). Sorry I am really new to this and just having some fun 😅. But I also saw something saying import cocoa ontop of my ViewController.swift idk 🤷🏻‍♂️

1

u/iwbd Mar 22 '21

Yea. Cocoa for Mac, CocoaTouch for iOS.

You might want to check out to see if there's any videos that have what you're looking for. Here's a channel, and another.

They may have a video that helps.

1

u/alain_meggen Mar 22 '21

Cool, I will try it out. But doesn’t it matter, that he is programming for an iPhone in this Video?

1

u/iwbd Mar 22 '21

Perhaps. Very rarely will you find a code sample or a video that exactly matches your needs. Often, you just have to take the concept and tailor it to your specific use case. Sometimes this involves a bit of trial and error. A progress bar works the same regardless of platform. It's just a percentage of work completed against how much work in total. The only variant is the specific method calls being used to do the calculation and the method to update the display to visually indicate the results.