5 // Created by Heberti Almeida on 06/05/15.
6 // Copyright (c) 2015 Folio Reader. All rights reserved.
13 var resource: FRResource
15 init(resource: FRResource, linear: Bool = true) {
16 self.resource = resource
21 class FRSpine: NSObject {
22 var pageProgressionDirection: String?
23 var spineReferences = [Spine]()
26 if let pageProgressionDirection = pageProgressionDirection , pageProgressionDirection == "rtl" {
32 func nextChapter(_ href: String) -> FRResource? {
35 for item in spineReferences {
40 if(item.resource.href == href) {