Amal T S
Amal T S

Reputation: 3405

Size inspector not working in Xcode: there are no options showing

I have added a UIViewController in the storyboard. And when I tried to change its size, there are no options showing in the size inspector. The attributes inspector also shows nothing. The xcode version that I am using is 9.4.1. It was working before.
enter image description here

Upvotes: 3

Views: 1984

Answers (3)

7RedBits.com
7RedBits.com

Reputation: 483

In Xcode 14.3.1 I could not get it working again. Downgrading to Xcode 14.0 solved it.

Upvotes: 0

Hasnain Haider K Niazi
Hasnain Haider K Niazi

Reputation: 151

Sometime its Xcode Bug, Just close current tab and open new … Hopefully you will see the Size Inspector.


Work with View Controllers

If you will still face the problem follow the below instructions to test your Xcode is working properly and you are using ode in proper way.

For this, you’ll use an image view (UIImageView), a user interface element that displays a picture.


To add an image view to your scene

  1. Open your storyboard, Main.storyboard.

  2. Open the Object library in the utility area. (Alternatively, choose View > Utilities > Show Object Library.) 

 



enter image description here

  1. In the Object library, type image view in the filter field to find the Image View object quickly. 



  2. Drag an Image View object from the Object library to your scene so that it’s in the stack view below the button. 

 



enter image description here

  1. With the image view selected, open the Size inspector  in the utility area. 
Recall that the Size inspector appears when you select the fifth button from the left in the inspector selector bar. It lets you edit the size and position of an object in your storyboard. 


enter image description here

Upvotes: 1

Mahendra
Mahendra

Reputation: 8904

Sometimes it happens with the Xcode, it seems the bug in it.

The solution is

Just close the current tab and open a new tab. Now Size inspector, attribute inspector, etc. will be shown.

Upvotes: 6

Related Questions