iOS 10 compat
This commit is contained in:
@@ -427,7 +427,7 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
|
||||
|
||||
do {
|
||||
let encoder = JSONEncoder()
|
||||
encoder.outputFormatting = [.prettyPrinted, .sortedKeys]
|
||||
encoder.outputFormatting = [.prettyPrinted]
|
||||
encoder.keyEncodingStrategy = .useDefaultKeys
|
||||
try encoder.encode(
|
||||
newMetadata
|
||||
@@ -718,7 +718,7 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
|
||||
readerView.addSubview(bottomBarView)
|
||||
|
||||
NSLayoutConstraint.activate([
|
||||
topBarView.topAnchor.constraint(equalTo: readerView.safeAreaLayoutGuide.topAnchor),
|
||||
topBarView.topAnchor.constraint(equalTo: readerView.topAnchor),
|
||||
topBarView.leadingAnchor.constraint(equalTo: readerView.leadingAnchor),
|
||||
topBarView.trailingAnchor.constraint(equalTo: readerView.trailingAnchor),
|
||||
topBarView.heightAnchor.constraint(equalToConstant: 64),
|
||||
|
||||
Reference in New Issue
Block a user