Skip to content

Commit

Permalink
Version 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeLM committed Feb 26, 2024
1 parent 1234e97 commit 7cd4452
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# MiLibrisReaderSDK iOS changelog

### v1.6.0
26/02/2023

**Features**

- [TC-3862] Replace article loading UI with skeleton+shimmer effect
- [TC-6533] Add utility method to override article fonts

**Improvements**

- [TC-6709] Hide article capsule view when a PDF page is zoomed in

### v1.5.0
14/02/2023

Expand Down
3 changes: 2 additions & 1 deletion MiLibrisReaderSDK.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"1.2.0": "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.2.0/MiLibrisReaderSDK.xcframework.zip",
"1.3.0": "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.3.0/MiLibrisReaderSDK.xcframework.zip",
"1.4.0": "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.4.0/MiLibrisReaderSDK.xcframework.zip",
"1.5.0": "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.5.0/MiLibrisReaderSDK.xcframework.zip"
"1.5.0": "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.5.0/MiLibrisReaderSDK.xcframework.zip",
"1.6.0": "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.6.0/MiLibrisReaderSDK.xcframework.zip"
}
4 changes: 2 additions & 2 deletions MiLibrisReaderSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "MiLibrisReaderSDK"
spec.version = "1.5.0"
spec.version = "1.6.0"

spec.summary = "miLibris iOS Reader SDK"
spec.description = <<-DESC
Expand All @@ -19,7 +19,7 @@ Pod::Spec.new do |spec|
spec.source = {
:http => "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v#{spec.version}/MiLibrisReaderSDK.xcframework.zip",
:type => "zip",
:sha256 => '2af64f6cedbc37068d9c0fb1e734c8f490ce53d9a61d9c02fb1caf3dde1dcdbb'
:sha256 => '766ce939061f9f163c4ce4a7b3ab448214d44f1147faa03fa41eae5f9dd48fe9'
}

spec.vendored_frameworks = 'MiLibrisReaderSDK.xcframework'
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "MiLibrisReaderSDK",
url: "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.5.0/MiLibrisReaderSDK.xcframework.zip",
checksum: "2af64f6cedbc37068d9c0fb1e734c8f490ce53d9a61d9c02fb1caf3dde1dcdbb"
url: "https://github.com/miLibris/ios-milibris-reader-sdk/releases/download/v1.6.0/MiLibrisReaderSDK.xcframework.zip",
checksum: "766ce939061f9f163c4ce4a7b3ab448214d44f1147faa03fa41eae5f9dd48fe9"
),
]
)
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,3 +683,41 @@ class MyViewController: UIViewController {

}
```

### Customize article reader fonts

You can quickly customize the article reader fonts to match your brand:

```swift
import MiLibrisReaderSDK

class MyViewController: UIViewController {

func openReader() {
// [...]

// Set this before presenting the reader
try reader.config.articleReader.articleReader.applyPrimaryFont(
regularFontName: "PlayfairDisplay-Regular",
blackFontName: "PlayfairDisplay-Black",
boldFontName: "PlayfairDisplay-Bold"
)
try reader.config.articleReader.applySecondaryFont(
regularFontName: "ComicNeue-Regular",
mediumFontName: "ComicNeue-Light",
semiBoldFontName: "ComicNeue-Bold"
)
try reader.config.articleReader.applyTertiaryFont(
regularFontName: "RobotoCondensed-Regular",
blackFontName: "RobotoCondensed-Black",
boldFontName: "RobotoCondensed-ExtraBold",
italicFontName: "RobotoCondensed-Italic"
)

// [...]
}

}
```

See the methods documentation in code for more info. In addition to this, you can also customize each UI component individually with the corresponding config properties.

0 comments on commit 7cd4452

Please sign in to comment.