-
Notifications
You must be signed in to change notification settings - Fork 62
Using Dodo in Objective C project
Evgenii Neumerzhitckii edited this page Apr 2, 2016
·
4 revisions
This is how to show Dodo messages in Objective-C apps.
- Add DodoObjCBridge.swift to your project and extend it to suit your needs.
- Import swift code in your Objective-C file:
#import "YOUR_PRODUCT_MODULE_NAME-Swift.h"
- Use Dodo from Objective-C code:
- (void)viewDidLoad {
[super viewDidLoad];
[DodoObjCBridge style: self.view];
[DodoObjCBridge topLayoutGuide:self.topLayoutGuide inView:self.view];
[DodoObjCBridge success: @"Hello from ObjC" inView: self.view];
}