- Add Objective-C files
- Create MyApp-Bridging-Header.h
#import "MyWebViewController.h" #import "MyModalWebViewController.h"
- Build Settings -> Objective-C Bridging Header
swift 這邊不需再 import 可以直接拿來用。/Users/isobar/Desktop/MyApp/MyApp-Bridging-Header.h
#import "MyWebViewController.h"
#import "MyModalWebViewController.h"
/Users/isobar/Desktop/MyApp/MyApp-Bridging-Header.h