Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Palace.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4731,7 +4731,7 @@
CODE_SIGN_IDENTITY = "Apple Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 389;
CURRENT_PROJECT_VERSION = 390;
DEVELOPMENT_TEAM = 88CBA74T8K;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 88CBA74T8K;
ENABLE_BITCODE = NO;
Expand Down Expand Up @@ -4790,7 +4790,7 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES_ERROR;
CODE_SIGN_ENTITLEMENTS = Palace/SimplyE.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CURRENT_PROJECT_VERSION = 389;
CURRENT_PROJECT_VERSION = 390;
DEVELOPMENT_TEAM = 88CBA74T8K;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 88CBA74T8K;
ENABLE_BITCODE = NO;
Expand Down Expand Up @@ -4974,7 +4974,7 @@
CODE_SIGN_ENTITLEMENTS = Palace/PalaceDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 389;
CURRENT_PROJECT_VERSION = 390;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -5000,7 +5000,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.0.0;
MARKETING_VERSION = 2.0.1;
PRODUCT_BUNDLE_IDENTIFIER = org.thepalaceproject.palace;
PROVISIONING_PROFILE_SPECIFIER = "";
RUN_CLANG_STATIC_ANALYZER = YES;
Expand Down Expand Up @@ -5035,7 +5035,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 389;
CURRENT_PROJECT_VERSION = 390;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 88CBA74T8K;
ENABLE_BITCODE = NO;
Expand All @@ -5062,7 +5062,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.0.0;
MARKETING_VERSION = 2.0.1;
PRODUCT_BUNDLE_IDENTIFIER = org.thepalaceproject.palace;
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "App Store";
Expand Down
12 changes: 9 additions & 3 deletions Palace/MyBooks/MyBooks/BookCell/ButtonView/BookButtonState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ extension BookButtonState {
buttons.append(book.isAudiobook ? .audiobookSample : .sample)
}
case .holding, .holdingFrontOfQueue:
buttons.append(.manageHold)
if book.hasSample && previewEnabled {
buttons.append(book.isAudiobook ? .audiobookSample : .sample)
if isHoldReady(book: book) {
buttons = [.get, .cancelHold]
} else {
buttons.append(.manageHold)

if book.hasSample && previewEnabled {
buttons.append(book.isAudiobook ? .audiobookSample : .sample)
}
}

case .managingHold:
if isHoldReady(book: book) {
buttons = [.get, .cancelHold]
Expand Down
22 changes: 22 additions & 0 deletions Palace/Reader2/UI/TPPEPUBViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,28 @@ class TPPEPUBViewController: TPPBaseReaderViewController {
setUIColor(for: preferences)
}

override func updateNavigationBar(animated: Bool = true) {
super.updateNavigationBar(animated: animated)
let navHidden = navigationController?.isNavigationBarHidden ?? false
tabBarController?.tabBar.isHidden = navHidden

if !navHidden, let tabBar = tabBarController?.tabBar {
if #available(iOS 13.0, *) {
let appearance = UITabBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = TPPConfiguration.backgroundColor()
tabBar.standardAppearance = appearance
if #available(iOS 15.0, *) {
tabBar.scrollEdgeAppearance = appearance
}
} else {
tabBar.barTintColor = TPPConfiguration.backgroundColor()
}
tabBar.isTranslucent = false
tabBar.tintColor = TPPConfiguration.iconColor()
}
}

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setUIColor(for: preferences)
Expand Down
Loading