Browse Source

face book url from about screen

pull/1/head
Amrit Giri 4 years ago
parent
commit
df04b449e9
  1. 15
      GME Remit/Modules/Home/User Interface/View/Home.storyboard
  2. 3
      GME Remit/Modules/Home/User Interface/View/HomeViewController.swift
  3. 41
      GME Remit/Modules/SideMenu/AboutGMEViewController.swift

15
GME Remit/Modules/Home/User Interface/View/Home.storyboard

@ -146,16 +146,16 @@
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="9Ft-mi-Ev0">
<rect key="frame" x="5" y="8.5" width="124.5" height="43"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="253" ambiguous="YES" text="Kwangju(034)" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumScaleFactor="0.84999999999999998" translatesAutoresizingMaskIntoConstraints="NO" id="IXG-rj-tyI">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="253" text="Kwangju(034)" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumScaleFactor="0.84999999999999998" translatesAutoresizingMaskIntoConstraints="NO" id="IXG-rj-tyI">
<rect key="frame" x="23" y="0.0" width="79" height="15.5"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Medium" family="San Francisco Display" pointSize="13"/>
<color key="textColor" name="ThemeText"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="jPc-HT-RBJ">
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="jPc-HT-RBJ">
<rect key="frame" x="46" y="20.5" width="32.5" height="22.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="261" verticalHuggingPriority="251" ambiguous="YES" text="N/A" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="FSQ-xU-CsJ">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="261" verticalHuggingPriority="251" text="N/A" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="FSQ-xU-CsJ">
<rect key="frame" x="0.0" y="0.0" width="32.5" height="22.5"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Medium" family="San Francisco Display" pointSize="19"/>
<color key="textColor" name="ThemeRed"/>
@ -389,7 +389,13 @@
</constraints>
<viewLayoutGuide key="safeArea" id="0Kl-lY-qUa"/>
</view>
<navigationItem key="navigationItem" id="JSG-8j-YZS"/>
<navigationItem key="navigationItem" id="JSG-8j-YZS">
<barButtonItem key="rightBarButtonItem" image="ic_support" id="FVP-ju-TEK">
<connections>
<action selector="customerSupport:" destination="HSb-ou-7T5" id="txd-0O-g0j"/>
</connections>
</barButtonItem>
</navigationItem>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
<connections>
<outlet property="messageLabel" destination="rwJ-pQ-p9z" id="40u-EV-EKU"/>
@ -432,6 +438,7 @@
<image name="ic-home" width="20.5" height="20.5"/>
<image name="ic_dragNdrop" width="10" height="10"/>
<image name="ic_home_verified" width="67" height="72"/>
<image name="ic_support" width="29" height="25"/>
<namedColor name="ThemeMainBackground">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>

3
GME Remit/Modules/Home/User Interface/View/HomeViewController.swift

@ -254,6 +254,9 @@ class HomeViewController: UIViewController {
}
}
}
@IBAction func customerSupport(_ sender: Any) {
}
@objc private func refresh() {
presenter?.refreshData()

41
GME Remit/Modules/SideMenu/AboutGMEViewController.swift

@ -23,27 +23,21 @@ class AboutGMEViewController: UIViewController {
@IBOutlet weak var followUsTitleText: UILabel!
@IBOutlet weak var versionTitleLabel: UILabel!
let URLFacebookApp: String = "fb://profile/1129818613815224"
let URLFacebookApp2: String = "fb://page/1129818613815224"
let URLFacebookBrowser: String = "https://www.facebook.com/1129818613815224/"
let URLLinkedInApp: String = "linkedin://company/gmeremit/"
let URLLinkedInBrowser: String = "https://www.linkedin.com/company/gmeremit/"
let facebookUrls: [String: String] = [
"np" : "https://www.facebook.com/gmenepal/",
"kh" : "https://www.facebook.com/gmecambodia/",
"lk" : "https://www.facebook.com/gmeremitsrilanka/",
"vn" : "https://www.facebook.com/gmevietnam/",
"ph" : "https://www.facebook.com/gmephilippines/",
"bd" : "https://www.facebook.com/gmebangladesh/",
"id" : "https://www.facebook.com/gmeindonesia/",
"th" : "https://www.facebook.com/gmethailand/",
"mn" : "https://www.facebook.com/gmemongolia/",
"uz" : "https://www.facebook.com/gmeuzbekistan/",
"in" : "https://www.facebook.com/GMEindia/",
"pk" : "https://www.facebook.com/gmepakistan/",
"mm" : "https://www.facebook.com/gmemyanmar/"
"np" : "",
"kh" : "",
"lk" : "",
"vn" : "",
"ph" : "",
"bd" : "",
"id" : "",
"th" : "",
"mn" : "",
"uz" : "",
"in" : "",
"pk" : "",
"mm" : ""
]
override func viewDidLoad() {
super.viewDidLoad()
@ -56,8 +50,6 @@ class AboutGMEViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// self.setupNormalNavigation()
// self.navigationItem.title = StringConstants().aboutGme
setupNormalNavigation(color: .themeRedDark)
setupNavigationShadow(isUse: false)
}
@ -79,13 +71,10 @@ class AboutGMEViewController: UIViewController {
}
@IBAction func checkForUpdate(_ sender: Any) {
//
}
@IBAction func openLinkedIn(_ sender: Any) {
// UIApplication.tryURL(urls: [self.URLLinkedInApp,
// self.URLLinkedInBrowser
// ])
}
@IBAction func openFacebook(_ sender: Any) {
@ -95,7 +84,7 @@ class AboutGMEViewController: UIViewController {
}
UIApplication.tryURL(
url: self.facebookUrls[nativeCountry.lowercased()] ?? "https://www.facebook.com/gmenepal/"
url: self.facebookUrls[nativeCountry.lowercased()] ?? "https://www.facebook.com/"
)
}

Loading…
Cancel
Save