Swiftpack.co -  readium/r2-shared-swift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
readium/r2-shared-swift
Repo for custom types shared by several readium-2 Swift modules
.package(url: "https://github.com/readium/r2-shared-swift.git", from: "2.1.0")

BSD-3 Carthage compatible

r2-shared-swift

Contains the definitions of the custom types (model) used across the Readium 2 Swift projects.

Changes and releases are documented in the Changelog

Adding the library to your iOS project

Note: requires Swift 4.2 (and Xcode 10.1).

Carthage

Carthage is a simple, decentralized dependency manager for Cocoa. To install R2Shared with Carthage:

  1. Make sure Carthage is installed.

  2. Update your Cartfile to include the following:

    github "readium/r2-shared-swift" "develop"
    
  3. Run:

  4. Add the appropriate framework.

Import

In your Swift files :

// Swift source file

import R2Shared

GitHub

link
Stars: 8
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

2.1.0
7 weeks ago

Take a look at the migration guide

Added

  • Support for Swift Package Manager (contributed by @stevenzeck).
  • (alpha) A new Publication SearchService to search through the resources' content with a default implementation StringSearchService.
  • Link objects from archive-based publication assets (e.g. an EPUB/ZIP) have additional properties for entry metadata.
    "properties" {
        "archive": {
            "entryLength": 8273,
            "isEntryCompressed": true
        }
    }
    
  • New UserProperties.removeProperty(forReference:) API to remove unwanted Readium CSS properties (contributed by @ettore).

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics