IDTech iOS SDK Guide  1.1.166.045
API reference for VP3300
Create a Bridging Header File

Using the VP3300 SDK with Swift requires a bridging header to allow the application to have a mixed-language codebase

First, you will need to create a header file. Right click on your project directory and click "New File...".

new_header_s.png

On the file creation screen, select Header File and click "Next"

new_header2_s.png

On the following screen, choose a name for your header file and click "Create"

new_header3_s.png

The bridging header file is now created

bridging_folder_s.png

The header file should look similar to the following:

#ifndef Swift_Bridging_Header_h
#define Swift_Bridging_Header_h
#endif


Next, you will need to link your header file to the bridging header setting. Navigate to Build Settings within Xcode

build_settings_s.png

Type "bridging" into the search bar and double click the Objective-C Bridging Header setting to get an input box

bridging_settings_s.png

Type the relative path to your project directory and the name of the bridging header file and then click enter to save the setting

bridging_settings_after_s.png