Search code examples
swiftuiviewuiprogressview

Swift 4 - UIProgressView coming up as UIView


Putting a ProgressView into a ViewController.

When I drag the ProgressView over to create an outlet the option comes up as UIView and not UIProgressView. What am I doing wrong?

Using Swift 4/Xcode 10.2.1

UIView only option in dropdown


Solution

  • Hate to say it but you must be dragging the wrong view. Just added a Progress View to a project and control + dragged it across and got this:

    enter image description here

    It's easier to control + drag specific views from the left hand side navigator sometimes instead of directly from the story board.

    Edit: Other than that I would try removing it and adding it again and/or restarting Xcode.