Learn Courses My Dashboard

Writing a text in content view

Hi i am not able to select from dropdown menu in the content viewer. It says failed to build content view swift

Hi @bsh

Welcome to the Code Crew community.

Can you post your code in a reply? Rather than posting a screen shot you should post the code as text.

Copy your code from the Xcode editor window and paste it in a reply. Format your code as per the following instructions.

To format the code nicely, place 3 back-ticks ``` on the line above your code and 3 back-ticks ``` on the line below your code. Like this:
Your lines of code goes here
The 3 back-ticks must be the ONLY characters on the line. The back-tick character is located on the same keyboard key as the tilde character ~ (which is located below the Esc key). You can also highlight an entire code block and click the </> button on the toolbar to wrap the block for you.

This also makes it easier for anyone assisting as they can copy the code and carry out some testing.



Can you post all of the View code so I can see the context in which you are using that modifier?

(edit) .scenePadding() works much like .padding(). You can’t pass a Rectangle into it as a parameter. The only options available to you are as per the screenshot.