0

I have 1 workspace with project with project with swift3. Now I need to add other project or target. I am not sure. But the goal is to have the other project in swift4. It will be helper project for main project in swift3. And this second project should be available from swift3. It's extensions for UIViewController. How can I make it?

Mark cubn
  • 507
  • 1
  • 4
  • 8

1 Answers1

0

You can do that either as separate project or as target of existing project.

  1. Create Framework

enter image description here

  1. Choose Swift version(4.0 in your case)

enter image description here

  1. Add Swift file

enter image description here

  1. Link framework in application

enter image description here

  1. Import framework and use extension

enter image description here

slobodans
  • 859
  • 1
  • 17
  • 23