Skip to content
Closed
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ RemoteSettings.plist

# Framework development
Loop.xcworkspace

# Ignore the idea folder of Jetbrains ides
.idea/
11 changes: 11 additions & 0 deletions Loop/View Controllers/StatusTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@ private extension RefreshContext {
final class StatusTableViewController: ChartsTableViewController {

private let log = OSLog(category: "StatusTableViewController")
private let visualEffectStatusBar = UIVisualEffectView(effect: UIBlurEffect(style: .light))

override func viewDidLoad() {
super.viewDidLoad()

// Adding a visualEffect view to prevent the StatusBar from overlaying the UITableView
visualEffectStatusBar.frame = UIApplication.shared.statusBarFrame
view.addSubview(visualEffectStatusBar)

charts.glucoseDisplayRange = (
min: HKQuantity(unit: .milligramsPerDeciliter, doubleValue: 100),
max: HKQuantity(unit: .milligramsPerDeciliter, doubleValue: 175)
Expand Down Expand Up @@ -142,6 +147,12 @@ final class StatusTableViewController: ChartsTableViewController {
super.viewWillTransition(to: size, with: coordinator)
}

// MARK: - TableView

override func scrollViewDidScroll(_ scrollView: UIScrollView) {
visualEffectStatusBar.transform = CGAffineTransform(translationX: 0, y: self.tableView.contentOffset.y)
}

// MARK: - State

override var active: Bool {
Expand Down