Skip to content

Commit

Permalink
Took pull and merged latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabulouiOS-monk committed Jun 29, 2024
2 parents f79e722 + 919d4e3 commit 6751e0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Scribe/AboutTab/AboutViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ extension AboutViewController {
hostingController.view.backgroundColor = .clear
hostingController.view.translatesAutoresizingMaskIntoConstraints = false
hostingController.view.isUserInteractionEnabled = true

let navigationView = navigationController?.navigationBar
guard let navigationView else { return }
navigationView.addSubview(hostingController.view)
Expand All @@ -235,14 +236,14 @@ extension AboutViewController {

let currentOffset = scrollView.contentOffset.y

if currentOffset > tableViewOffset{
if currentOffset > tableViewOffset {
// Scrolling up
UIView.animate(withDuration: 0.2) {
hostingController.view.alpha = 0
}
} else if currentOffset == tableViewOffset {
// Show the view only when scrolled to the top
UIView.animate(withDuration: 0.2) {
UIView.animate(withDuration: 0.1) {
hostingController.view.alpha = 1
}
}
Expand Down
1 change: 1 addition & 0 deletions Scribe/SettingsTab/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ extension SettingsViewController {
hostingController.view.frame = CGRect(x: 0, y: 0, width: self.view.bounds.width, height: -20)
hostingController.view.backgroundColor = .clear
hostingController.view.translatesAutoresizingMaskIntoConstraints = false

let navigationView = navigationController?.navigationBar
guard let navigationView else { return }
navigationView.addSubview(hostingController.view)
Expand Down

0 comments on commit 6751e0f

Please sign in to comment.