Last active
August 21, 2019 03:30
-
-
Save stonezhl/7340485cb04295401a162a73172f7455 to your computer and use it in GitHub Desktop.
EPUBBook Class - 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class EPUBBook { | |
// ... | |
let opf: OPFDocument | |
init?(contentsOf baseURL: URL) { | |
// ... | |
// Parse the OPF file | |
guard let opf = OPFDocument(url: opfURL) else { return nil } | |
self.opf = opf | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment