I am trying to import this project into my swift project. What I have done is add the PanoromaView.h
and PanoromaView.m
files, and added #import "PanoramaView.h"
to my bridging header. I have also added the OpenGLES.framework and GLKit.Framework to my project.
I am now getting errors saying
Cannot find interface declaration for 'GLKView', superclass of 'PanoramaView'
and
Unknown type name 'GLKVector3'
This is an image of the errors in the code:
If anybody can help explain what these are how I remove them that would be great.
Thanks
EDIT:
I have also tried installing through Cocoapods and still get the exact same errors, very strange?
In order to make it work, I had to add this into
PanoramaView.h
:Suggested on the github code does not work for me from the box. Also I had to modify ViewController:
This is my sample app:
https://github.com/melifaro-/Swift-PanoramaSample
Hope it helps.
BTW, I did not use CocoaPods. I use
PanoramaView.h
andPanoramaView.m
files only.