0

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

Edward Hasted
  • 3,201
  • 8
  • 30
  • 48

1 Answers1

2

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.

Tom Pearson
  • 384
  • 1
  • 8
  • Control + the left side navigator works. From the view and the ProgressBar is highlighted gave the UIView only. Many thanks. – Edward Hasted Apr 23 '19 at 21:54