mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-27 13:59:04 -04:00
refactor
This commit is contained in:
parent
a28b840f1e
commit
f89b83522f
@ -103,8 +103,6 @@ class BookDetailController: UITableViewController, DZNEmptyDataSetSource, DZNEmp
|
|||||||
cellTitles[1] = [LocalizedStrings.downloading]
|
cellTitles[1] = [LocalizedStrings.downloading]
|
||||||
case .Local:
|
case .Local:
|
||||||
cellTitles[1] = [LocalizedStrings.remove]
|
cellTitles[1] = [LocalizedStrings.remove]
|
||||||
default:
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.1488</string>
|
<string>1.8.1491</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.1492</string>
|
<string>1.8.1495</string>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionMainStoryboard</key>
|
<key>NSExtensionMainStoryboard</key>
|
||||||
|
@ -114,6 +114,10 @@ class TodayViewController: UIViewController, NCWidgetProviding, UICollectionView
|
|||||||
|
|
||||||
cell.label.text = title
|
cell.label.text = title
|
||||||
cell.imageView.image = UIImage(data: thumbImageData)
|
cell.imageView.image = UIImage(data: thumbImageData)
|
||||||
|
|
||||||
|
if #available(iOS 10, *) {
|
||||||
|
cell.label.textColor = UIColor.darkGrayColor()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - UICollectionViewDelegate
|
// MARK: - UICollectionViewDelegate
|
||||||
|
@ -222,7 +222,6 @@ class Book: NSManagedObject {
|
|||||||
case 1: return .Downloading
|
case 1: return .Downloading
|
||||||
case 2: return .Local
|
case 2: return .Local
|
||||||
case 3: return .Retained
|
case 3: return .Retained
|
||||||
case 4: return .Purgeable
|
|
||||||
default: return .Cloud
|
default: return .Cloud
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -244,7 +243,7 @@ class Book: NSManagedObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum BookState: Int {
|
enum BookState: Int {
|
||||||
case Cloud, Downloading, Local, Retained, Purgeable
|
case Cloud, Downloading, Local, Retained
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user