Skip to content

Commit

Permalink
Merge pull request #25 from shinrenpan/develop
Browse files Browse the repository at this point in the history
v0.9.9
  • Loading branch information
shinrenpan authored Sep 26, 2024
2 parents bf0e4fc + 46bf9ac commit 2f2a02c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sources/MVVVR/Reader/ReaderVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ private extension ReaderVC {
vo.reloadEnableUI(response: response)
updateHiddenBarUI(delay: true)
updateListLayout()
vo.reloadListToStartPosition()
}

func stateDataLoadFail(response: ReaderModel.ImageLoadFailResponse) {
Expand Down
5 changes: 5 additions & 0 deletions Sources/MVVVR/Reader/ReaderVO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ final class ReaderVO {
// MARK: - Public

extension ReaderVO {
func reloadListToStartPosition() {
let zero = IndexPath(item: 0, section: 0)
list.scrollToItem(at: zero, at: .top, animated: false)
}

func reloadEnableUI(response: ReaderModel.DataLoadedResponse) {
mainView.isHidden = false
prevItem.isEnabled = response.hasPrev
Expand Down
4 changes: 2 additions & 2 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ targets:
base:
CODE_SIGN_STYLE: Manual
INFOPLIST_FILE: Sources/App/Info.plist
MARKETING_VERSION: 0.9.8
CURRENT_PROJECT_VERSION: 20240925
MARKETING_VERSION: 0.9.9
CURRENT_PROJECT_VERSION: 20240926
PRODUCT_BUNDLE_IDENTIFIER: com.shinrenpan.Comic
configs:
Debug:
Expand Down

0 comments on commit 2f2a02c

Please sign in to comment.