1

enter image description hereI am familiar with Objective C. And learning Swift .

I want to reuse my .xib file designs with Swift.

But when i create a new file the Create xib UI is disabled .

Abhishek Mishra
  • 1,625
  • 16
  • 32
  • see the below link and follow - http://stackoverflow.com/questions/27596483/can-not-create-an-iphone-xib-file-with-xcode-6 – Ajay Singh Thakur Jun 15 '16 at 10:00
  • Thanks ,That is ok we can create separate- separate but my question is .... Can we make same as Objective C, create Both at same time or not ? – Abhishek Mishra Jun 15 '16 at 10:13
  • 1
    I don't get it...you say you already have an .xib file. So why would you need to create one? – 7stud Jun 15 '16 at 10:24

2 Answers2

5

For some reason Xcode 7 has started defaulting to the OS X controls when I ask for a new file...

enter image description here

If you select this option and hit next then you cannot create a xib...

enter image description here

However, if you change to use the iOS files instead...

enter image description here

You then have the option to create a xib with your view controller...

enter image description here

Hope that helps.

Fogmeister
  • 76,236
  • 42
  • 207
  • 306
1

by creating new file whatever in objective c or swift. you can create by attached screenshot

enter image description here

Krutarth Patel
  • 3,407
  • 6
  • 27
  • 54