Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-ios
Commits
a7af0423
Verified
Commit
a7af0423
authored
Feb 06, 2019
by
Eyad Hasan
Browse files
I broke things
parent
b246692a
Changes
3
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen.xcodeproj/project.pbxproj
View file @
a7af0423
...
...
@@ -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"
;
...
...
WhatsOpen/WhatsOpen/Views/DetailViewButtonsViewController.swift
View file @
a7af0423
...
...
@@ -16,7 +16,7 @@ class DetailViewButtonsViewController: UIViewController, INUIAddVoiceShortcutVie
@IBOutlet
var
facilityDetailView
:
UIView
!
private
var
infoBubbleView
:
UI
View
!
private
var
infoBubbleView
:
HUD
View
Controller
!
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
}
}
}
...
...
WhatsOpen/WhatsOpen/Views/HUDViewController.swift
View file @
a7af0423
...
...
@@ -17,6 +17,8 @@ class HUDViewController: UIViewController {
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment