Skip to content

Commit

Permalink
Merge pull request #99 from beeminder/fix-scrolling-in-goalvc-of-appl…
Browse files Browse the repository at this point in the history
…ehealth-sourced-goals

Adjust Scrolling on GoalViewController
  • Loading branch information
andrewpbrett authored Jul 30, 2020
2 parents 41a30bd + fb27000 commit 4ea9390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BeeSwift/GoalViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class GoalViewController: UIViewController, UITableViewDelegate, UITableViewData

self.view.addSubview(self.scrollView)
self.scrollView.snp.makeConstraints { (make) -> Void in
make.top.equalTo(self.topLayoutGuide.snp.bottom)
make.top.equalToSuperview()
make.left.equalTo(0)
make.right.equalTo(0)
make.bottom.equalTo(0)
Expand Down Expand Up @@ -114,7 +114,7 @@ class GoalViewController: UIViewController, UITableViewDelegate, UITableViewData
self.goalImageView.image = UIImage(named: "GraphPlaceholder")


self.view.addSubview(self.deltasLabel)
self.scrollView.addSubview(self.deltasLabel)
self.deltasLabel.snp.makeConstraints { (make) in
make.top.equalTo(self.goalImageScrollView.snp.bottom)
make.left.right.equalTo(0)
Expand Down Expand Up @@ -311,7 +311,7 @@ class GoalViewController: UIViewController, UITableViewDelegate, UITableViewData

if self.goal.autodata == "apple" {
let appleSyncView = UIView()
self.view.addSubview(appleSyncView)
self.scrollView.addSubview(appleSyncView)
appleSyncView.snp.makeConstraints({ (make) in
make.top.equalTo(self.datapointsTableView.snp.bottom).offset(10)
if #available(iOS 11.0, *) {
Expand Down

0 comments on commit 4ea9390

Please sign in to comment.