Latest 0.0.3
Homepage https://github.com/izhoubin/RxEpub
License MIT
Platforms ios 9.0, requires ARC
Dependencies SSZipArchive, RxSwift, RxCocoa, AEXML, NSObject+Rx, RxSwiftExt
Frameworks UIKit
Authors

CI Status
Version
License
Platform
Swift

Example

You can load epub from local or remote files whether it’s unziped or not.

1. Load local epub

let url = Bundle.main.url(forResource: "330151", withExtension: "epub")

2. Load local epub (unziped)

let url = FileManager.default.urls(for: FileManager.SearchPathDirectory.cachesDirectory, in: .userDomainMask).first?.appendingPathComponent("Epubs").appendingPathComponent("330151")

3. Load remote epub

let url = URL(string: "http://localhost/330151.epub")

4. Load remote epub (unziped)

let url =  URL(string:"http://localhost/330151")

Open reader

let vc = RxEpubPageController(url:url)
navigationController?.pushViewController(vc, animated: true)

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.0+
  • Xcode 9+

Installation

RxEpub is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'RxEpub'

Author

izhoubin, [email protected]

License

RxEpub is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RxEpub",
    "version": "0.0.3",
    "summary": "Epub paser and reader based on RxSwift",
    "description": "'Epub paser and reader based on RxSwift'",
    "homepage": "https://github.com/izhoubin/RxEpub",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "izhoubin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/izhoubin/RxEpub.git",
        "tag": "0.0.3"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": [
        "RxEpub/Classes/*.{h,swift}",
        "RxEpub/Classes/**/*.swift"
    ],
    "resources": [
        "RxEpub/**/*.{js,css,jpg,png}",
        "RxEpub/Assets/*.xcassets"
    ],
    "dependencies": {
        "SSZipArchive": [],
        "RxSwift": [],
        "RxCocoa": [],
        "AEXML": [],
        "NSObject+Rx": [],
        "RxSwiftExt": []
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This