Browse Source

layer extension

pull/1/head
gme_2 6 years ago
parent
commit
9dced45689
  1. 4
      GMERemittance/Extension/CALayerExtension.swift
  2. 15
      GMERemittance/Module/Home/User Interface/View/Home.storyboard
  3. 4
      GMERemittance/Module/Home/User Interface/View/HomeViewController.swift

4
GMERemittance/Extension/CALayerExtension.swift

@ -10,8 +10,8 @@ import Foundation
extension CALayer {
func addShadow(with color: UIColor, shadowRadius:CGFloat = 2, shadowOpacity: Float = 0.37) {
self.shadowOffset = .zero
func addShadow(with color: UIColor, shadowRadius:CGFloat = 2, shadowOpacity: Float = 0.37, shadowOffset: CGSize = .zero) {
self.shadowOffset = shadowOffset
self.shadowOpacity = shadowOpacity
self.shadowRadius = shadowRadius
self.shadowColor = color.cgColor

15
GMERemittance/Module/Home/User Interface/View/Home.storyboard

@ -36,13 +36,6 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="alB-Pe-T92">
<rect key="frame" x="0.0" y="0.0" width="375" height="100"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="17X-fv-KyB" userLabel="Seperator">
<rect key="frame" x="0.0" y="99.5" width="375" height="0.5"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="bf7-EA-sF4"/>
</constraints>
</view>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_home_verified" translatesAutoresizingMaskIntoConstraints="NO" id="UD8-ap-8xD">
<rect key="frame" x="24" y="14" width="67" height="72"/>
<constraints>
@ -84,6 +77,13 @@
<action selector="closeVerificationNotice:" destination="HSb-ou-7T5" eventType="touchUpInside" id="hJ9-f7-YdK"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="17X-fv-KyB" userLabel="Seperator">
<rect key="frame" x="0.0" y="99.5" width="375" height="0.5"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="bf7-EA-sF4"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<gestureRecognizers/>
@ -359,6 +359,7 @@
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
<connections>
<outlet property="barButtonItem" destination="If6-UM-LN6" id="whn-bC-UGO"/>
<outlet property="seperatorView" destination="17X-fv-KyB" id="dCf-y3-EMS"/>
<outlet property="tableView" destination="wXh-zk-jWw" id="FZk-dJ-oM4"/>
<outlet property="tapGuesture" destination="mMy-5m-HW2" id="Q4r-zd-BWJ"/>
<outlet property="thankyouTitleLabel" destination="pcY-xj-hQb" id="pvR-3R-j3Y"/>

4
GMERemittance/Module/Home/User Interface/View/HomeViewController.swift

@ -46,7 +46,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout {
@IBOutlet weak var verificationHeaderRightButton: UIButton!
@IBOutlet weak var barButtonItem: RAMAnimatedTabBarItem!
@IBOutlet weak var seperatorView: UIView!
// title labels
@IBOutlet weak var thankyouTitleLabel: UILabel!
@ -144,8 +144,6 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout {
$0.os ?? "" == "IOS"
}).first else {return}
print(ios.build)
let critical = ios.critical ?? "N"
UserDefaults.standard.set(critical, forKey: AppConstants.criticalUpdate)
let version = Utility.getAppVersion() ?? ""

Loading…
Cancel
Save