From c05f7f1bbf73c2d90f0d503b04d4b63364430128 Mon Sep 17 00:00:00 2001 From: Deniz Duezgoeren Date: Sat, 17 Aug 2019 18:20:07 +0200 Subject: [PATCH] Made tweaks to some constraints --- AvH Plan/Base.lproj/Main.storyboard | 23 +++++++++---------- AvH Plan/DataFetcher.swift | 2 +- AvH Plan/InfoViewController.swift | 7 ++++++ AvH Plan/PlanViewCell.xib | 34 +++++++++++++++++------------ 4 files changed, 40 insertions(+), 26 deletions(-) diff --git a/AvH Plan/Base.lproj/Main.storyboard b/AvH Plan/Base.lproj/Main.storyboard index 5caacbb..c3a1be2 100644 --- a/AvH Plan/Base.lproj/Main.storyboard +++ b/AvH Plan/Base.lproj/Main.storyboard @@ -241,10 +241,10 @@ - + - - - - + + + + - - - - - + + + + + @@ -280,6 +280,7 @@ + diff --git a/AvH Plan/DataFetcher.swift b/AvH Plan/DataFetcher.swift index 936ffae..b07662c 100644 --- a/AvH Plan/DataFetcher.swift +++ b/AvH Plan/DataFetcher.swift @@ -34,7 +34,7 @@ class DataFetcher { func doAsync(do task: String, completionHandler: @escaping (_ substitutions: [Any]) -> ()) { DispatchQueue(label: "work-queue").async { - let foodUrl = "https://djd4rkn355.github.io/food_test.html" + let foodUrl = "https://djd4rkn355.github.io/food.html" let url = "https://djd4rkn355.github.io/subst.html" Alamofire.request(url).responseString { response in if let html = response.result.value { diff --git a/AvH Plan/InfoViewController.swift b/AvH Plan/InfoViewController.swift index b70317f..1f8ba50 100644 --- a/AvH Plan/InfoViewController.swift +++ b/AvH Plan/InfoViewController.swift @@ -11,6 +11,7 @@ import UIKit class InfoViewController : UIViewController { @IBOutlet weak var content: UILabel! + @IBOutlet weak var contentView: UIView! let prefs = UserDefaults.standard @IBOutlet weak var scrollView: UIScrollView! private let refreshControl = UIRefreshControl() @@ -33,6 +34,12 @@ class InfoViewController : UIViewController { override func viewDidLoad() { super.viewDidLoad() self.navigationController?.navigationBar.topItem?.title = NSLocalizedString("information", comment: "") + let layer = contentView.layer + layer.cornerRadius = 12.0 + layer.shadowColor = UIColor.gray.cgColor + layer.shadowOffset = CGSize(width: 0.0, height: 0.0) + layer.shadowRadius = 1.5 + layer.shadowOpacity = 0.7 } @objc private func objDoAsync(_ sender: Any) { diff --git a/AvH Plan/PlanViewCell.xib b/AvH Plan/PlanViewCell.xib index 603d504..abc08c1 100644 --- a/AvH Plan/PlanViewCell.xib +++ b/AvH Plan/PlanViewCell.xib @@ -23,37 +23,43 @@ -