Verified Commit a7af0423 authored by Eyad Hasan's avatar Eyad Hasan
Browse files

I broke things

parent b246692a
......@@ -840,7 +840,7 @@
};
928EC2512160475900D8F9FE = {
CreatedOnToolsVersion = 10.0;
DevelopmentTeam = N5GM564QWL;
DevelopmentTeam = HQSN7HX89U;
ProvisioningStyle = Automatic;
};
929680A921FBBE2F00A87E86 = {
......@@ -1949,7 +1949,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = N5GM564QWL;
DEVELOPMENT_TEAM = HQSN7HX89U;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
......@@ -1986,7 +1986,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = N5GM564QWL;
DEVELOPMENT_TEAM = HQSN7HX89U;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
......@@ -2022,7 +2022,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = K5MMVK2UFR;
DEVELOPMENT_TEAM = HQSN7HX89U;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
......
......@@ -16,7 +16,7 @@ class DetailViewButtonsViewController: UIViewController, INUIAddVoiceShortcutVie
@IBOutlet var facilityDetailView: UIView!
private var infoBubbleView: UIView!
private var infoBubbleView: HUDViewController!
var detailViewController: WOPFacilityDetailViewController?
var facility: WOPFacility!
......@@ -42,11 +42,30 @@ class DetailViewButtonsViewController: UIViewController, INUIAddVoiceShortcutVie
}
else { // else add it to favorites
_ = WOPUtilities.addFavoriteFacility(facility)
loadInfoBubbleView()
loadChild()
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.unloadChild()
}
}
setFavoriteButtonText()
}
func loadChild() {
self.addSubview(infoBubbleView.view, toView: (detailViewController?.view)!)
self.addChild(infoBubbleView)
infoBubbleView.didMove(toParent: detailViewController)
}
func unloadChild() {
infoBubbleView.willMove(toParent: nil)
infoBubbleView.removeFromParent()
infoBubbleView.view.removeFromSuperview()
}
func getDirections(_ sender: Any) {
let appToUse = WOPDatabaseController.getDefaults().value(forKey: "mapsApp") as? String
......@@ -110,7 +129,6 @@ class DetailViewButtonsViewController: UIViewController, INUIAddVoiceShortcutVie
self.addChild(self.detailViewController!)
self.addSubview(self.detailViewController!.view, toView: self.facilityDetailView)
super.viewDidLoad()
infoBubbleView.isHidden = true
setFavoriteButtonText()
favoritesButton.tintColor = UIColor.white
......@@ -197,19 +215,6 @@ class DetailViewButtonsViewController: UIViewController, INUIAddVoiceShortcutVie
*/
private func loadInfoBubbleView () {
let infoBubbleFrame = CGRect(x: 0, y: 0, width: view.frame.width, height: view.frame.height - 200)
infoBubbleView = UIView(frame: infoBubbleFrame)
view.addSubview(infoBubbleView)
infoBubbleView.isHidden = false
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
self.infoBubbleView.isHidden = true
}
}
}
......
......@@ -17,6 +17,8 @@ class HUDViewController: UIViewController {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment