Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift project problem #10

Open
MagicValots opened this issue Nov 15, 2017 · 8 comments
Open

Swift project problem #10

MagicValots opened this issue Nov 15, 2017 · 8 comments

Comments

@MagicValots
Copy link

Hi,

i've a Swift project, imported your library and compiled without error, but when i try to implement your code, Xcode doesn't recognise the import of UXReaderDocument and UXReaderViewController classes, ( i've tried also to import theme inside my bridge header class ) it suggest only .png files, so i can't implement your example code.

Any suggestion about this problem? can you give me a guide for swift project?

Thank you.

@iDevelopper
Copy link

Hi,

Have you read HOWTO.md?

@MagicValots
Copy link
Author

MagicValots commented Nov 15, 2017

Yes,

i've dragged UXReader folder inside my workspace, libpdfium.a was already included inside UXReader/UXReader/PDFium/ path, and then compiled without problem, i've lost something?

Maybe for Swift project there are other step to do?

Screen:

schermata 2017-11-15 alle 16 18 25

Thank you.

@iDevelopper
Copy link

Replace by (and test on device):

//
//	UXReader.h
//	UXReader Framework v0.1
//
//	Copyright © 2017 Julius Oklamcak. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for UXReader.
FOUNDATION_EXPORT double UXReaderVersionNumber;

//! Project version string for UXReader.
FOUNDATION_EXPORT const unsigned char UXReaderVersionString[];

#import "UXReaderDocument.h"
#import "UXReaderDocumentPage.h"
#import "UXReaderViewController.h"
#import "UXReaderCanceller.h"
#import "UXReaderSelection.h"
#import "UXReaderOutline.h"
#import "UXReaderDestination.h"
#import "UXReaderAction.h"
#import "UXReaderWatermark.h"

@MagicValots
Copy link
Author

Ok perfect i've imported this library in my bridge header and now i can present PDF; the next step is to enable the different toolbar actions ( index, search, etc... ) i'm looking inside the code of "ReaderViewController.mm" the methods "populateViewController()" and ReaderUpperToolbarDelegate methods; i've to replicate this code or there is a simple way?

Thank you.

@iDevelopper
Copy link

I don't understand. The toolbar actions are already enabled.

@iDevelopper
Copy link

Otherwise I would like to test a PR on a iPhone X device as we can't test on simulator. Do you have an iPhone X?

@atalsingh1244
Copy link

atalsingh1244 commented Mar 20, 2018

Hi,
libpdfium.a(281.9 MB) size is too long, can it's size reduce?

@dehlen
Copy link

dehlen commented Apr 4, 2018

@iDevelopper i have a iPhone X how can i help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants