Manos Chorianopoulos

possible fix for header line

......@@ -57,6 +57,9 @@ import SwiftEventBus
topBorderLine.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderLine.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderLine.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderLine.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderLine.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderLine.heightAnchor.constraint(equalTo: topBorderLine.widthAnchor, multiplier: 1/aspectR)
])
......
......@@ -11,6 +11,7 @@ import AVFoundation
// import SwiftEventBus
@objc public class CouponBarcodeViewController: UIViewController {
@IBOutlet weak var mainView: UIView!
@IBOutlet weak var backgroundImage: UIImageView!
@IBOutlet weak var scrollView: UIScrollView!
@IBOutlet weak var scrollContentView: UIView!
......@@ -72,6 +73,9 @@ import AVFoundation
topBorderLine.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderLine.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderLine.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderLine.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderLine.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderLine.heightAnchor.constraint(equalTo: topBorderLine.widthAnchor, multiplier: 1/aspectR)
])
......
......@@ -63,6 +63,9 @@ import SwiftEventBus
topBorderLine.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderLine.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderLine.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderLine.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderLine.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderLine.heightAnchor.constraint(equalTo: topBorderLine.widthAnchor, multiplier: 1/aspectR)
])
......
......@@ -81,6 +81,9 @@ import SwiftEventBus
topBorderShadow.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderShadow.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderShadow.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderShadow.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderShadow.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderShadow.heightAnchor.constraint(equalTo: topBorderShadow.widthAnchor, multiplier: 1/aspectR)
])
......
......@@ -72,6 +72,9 @@ import SwiftEventBus
topBorderShadow.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderShadow.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderShadow.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderShadow.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderShadow.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderShadow.heightAnchor.constraint(equalTo: topBorderShadow.widthAnchor, multiplier: 1/aspectR)
])
......
......@@ -1624,6 +1624,7 @@
<outlet property="couponView" destination="Zdf-1r-FdJ" id="OA8-73-e0p"/>
<outlet property="discriptionLabel" destination="mri-Wl-spg" id="iuf-XL-NWH"/>
<outlet property="expirationLabel" destination="UhC-Lj-tfN" id="9Hj-I1-nJa"/>
<outlet property="mainView" destination="P3Q-nP-aSj" id="pZK-pk-db5"/>
<outlet property="mapButton" destination="W5f-1T-iW6" id="2IL-QE-TdM"/>
<outlet property="nameLabel" destination="Xz4-EE-EzJ" id="zTY-n5-36h"/>
<outlet property="redeemButton" destination="8cR-Rc-YMJ" id="atB-0m-8ff"/>
......@@ -2659,6 +2660,7 @@
<outlet property="giftTypeLabel" destination="yXI-Ds-V0T" id="ux6-O8-GPe"/>
<outlet property="heroImage" destination="QlP-ct-u6O" id="lCm-UF-0Sy"/>
<outlet property="heroImageHeight" destination="v6r-oa-0XG" id="3Mg-z2-ETz"/>
<outlet property="mainView" destination="8dQ-SF-Z4E" id="SpH-kQ-TGd"/>
<outlet property="moreButton" destination="ulI-Td-g6v" id="4Xj-S3-FzE"/>
<outlet property="moreTextView" destination="mCl-kM-ssj" id="cC6-pL-jqp"/>
<outlet property="moreTextViewHeight" destination="Uys-zo-ERe" id="W9H-V2-oOm"/>
......
......@@ -10,6 +10,7 @@ import MapKit
@objc public class MapsViewController: UIViewController, MKMapViewDelegate {
// ui
@IBOutlet weak var mainView: UIView!
@IBOutlet weak var backgroundImage: UIImageView!
@IBOutlet private var mapView: MKMapView!
......@@ -63,6 +64,9 @@ import MapKit
topBorderLine.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderLine.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderLine.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderLine.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderLine.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderLine.heightAnchor.constraint(equalTo: topBorderLine.widthAnchor, multiplier: 1/aspectR)
])
......
......@@ -17,6 +17,7 @@
<outlet property="directionsButton" destination="bw3-J9-wHr" id="sSi-OK-KTA"/>
<outlet property="hoursView" destination="u9U-A7-lbO" id="xm5-gQ-zjh"/>
<outlet property="infoTopConstraint" destination="9av-UX-8VL" id="uKX-lw-OTH"/>
<outlet property="mainView" destination="rKl-bF-Zpf" id="ghc-id-sqV"/>
<outlet property="mapView" destination="F1c-ck-cQa" id="cdx-31-BiL"/>
<outlet property="nameImageView" destination="eDV-A1-pOO" id="JYq-eT-kEG"/>
<outlet property="nameView" destination="MsK-eg-pkk" id="60t-lm-O8m"/>
......
......@@ -67,6 +67,9 @@ import SwiftEventBus
topBorderLine.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderLine.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderLine.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderLine.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderLine.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderLine.heightAnchor.constraint(equalTo: topBorderLine.widthAnchor, multiplier: 1/aspectR)
])
......
......@@ -64,6 +64,9 @@ import SwiftEventBus
topBorderLine.contentMode = .scaleAspectFit
NSLayoutConstraint.activate([
topBorderLine.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
topBorderLine.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
topBorderLine.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
topBorderLine.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
topBorderLine.heightAnchor.constraint(equalTo: topBorderLine.widthAnchor, multiplier: 1/aspectR)
])
......