Reputation: 99
I am following the iOS App Development guides from Apple to learn about Xcode and Swift. There's one assignment where I need to select something in the Size Inspector tab. However, the option isn't listed there. I've searched the web for solutions but I cannot find any proper solution.
Do you guys have any tips?
Here's a screenshot of the Xcode window:
Link to the Apple Guide: Apple iOS App Guide (Looking for the Intrinsic Size option to select 'Placeholder.')
Upvotes: 8
Views: 3157
Reputation: 31
I had the same problem following "Start Developing iOS Apps (Swift)" Guide and I followed Karen's comment, it worked!
You have to drag the ImageView from Object Library to inside the frame of the stackView on the storyboard. The Intrinsic Size field will then show up on the Size Inspector window.
If you drag the ImageView to outside the frame of the stackView, this Intrinsic Size field won't show up.
Upvotes: 3
Reputation: 111
I had this same problem. When you dragged the Image View thumbnail under the button, it was added below the Stack View in the View Controller Scene. You need to move it, so the Image View is within the Stack View section (not under it). Once it’s inside the Stack View, the full list of options will appear in the Size Inspector tab. Click here to see the Image View placement inside Stack View
Upvotes: 11
Reputation: 136
You have to add some constraints, then option will be available. Intrisinc size is size of image view content, which is used in auto layout process, without constraints it does not make any sense to use it.
After You add constraint You should have something like this:
Upvotes: 4
Reputation: 7585
You have selected something (this is a View
behind your ImageView
) other than your ImageView
. Try to select your ImageView
from the document outline and your size inspector will show appropriate properties.
Upvotes: 1