Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storyboard UI not updating while working on storyboard

I m facing very strange issue in that I have one project which was created in Xcode 8.3.2 and swift 3 and now I have updated the code with swift 4 and using latest Xcode 9.2 all other changes I have made and app is working fine in simulator and device

Main Problem: - When I open storyboard so it load properly and if I m making any changes in any viewcontroller(Interface builder) so it is not reflecting in that viewcontroller(Interface builder) after quit storyboard and reload so my change are showing so I have to do this all the time for every single changes I made in the storyboard

I have tried to search to whole stack and also many other links still not find a solutions so let me know the solutions or your suggestions

Note:- I can not take new storyboard cause I have already design too many screens so.

like image 824
Ravi Panchal Avatar asked Jan 23 '18 05:01

Ravi Panchal


People also ask

How do you refresh a storyboard?

Open your storyboard (make sure it is in the active tab), then uncheck Editor > Automatically Refresh Views.

Can you mix storyboard and SwiftUI?

The answer is YES! Here we will be discussing a simple way to use SwiftUI into our existing project, which already consists of a storyboard.

Is storyboard better than SwiftUI?

Storyboard Advantages over SwiftUIIt is easier to use Storyboard as a beginner . Storyboard consist of Xib and custom View which can be reusable in the projects. It is easier to build an app as there is only drag and drop of the elements of the storyboard.

Will SwiftUI replace storyboard?

There is no direct way of migrating from storyboard to swift UI. This compels a developer to continue the use of the storyboard for existing apps and in lower versions. Since, it is very new so there is less community support which is not the case for storyboard.


1 Answers

I have facing same issue. Please do as below.

  1. Go to > Project directory.

  2. Select ProjectName.xcodeproj and go to show package content as below as per below image.

enter image description here

  1. Delete xcuserdata folder, You can show in below image.

enter image description here

  1. Remove derive data from project.

  2. Just clean and Build...Happy coding...

like image 97
Hitesh Surani Avatar answered Oct 30 '22 03:10

Hitesh Surani