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
0f841fd2
Commit
0f841fd2
authored
Aug 30, 2018
by
Eyad Hasan
Browse files
Merge branch 'dev-1.0.1' into 'dev-1.2'
Merging left over commit to current dev branch See merge request
!32
parents
e4760e69
07159834
Changes
2
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen/Info.plist
View file @
0f841fd2
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<key>
CFBundleShortVersionString
</key>
<key>
CFBundleShortVersionString
</key>
<string>
1.1
</string>
<string>
1.1
</string>
<key>
CFBundleVersion
</key>
<key>
CFBundleVersion
</key>
<string>
3
6
</string>
<string>
3
7
</string>
<key>
Fabric
</key>
<key>
Fabric
</key>
<dict>
<dict>
<key>
APIKey
</key>
<key>
APIKey
</key>
...
...
WhatsOpen/WhatsOpen/Views/Primary Views/FacilitiesListViewController.swift
View file @
0f841fd2
...
@@ -297,7 +297,11 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
...
@@ -297,7 +297,11 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
nc
.
addObserver
(
self
,
selector
:
#selector(
anyRefresh(_:)
)
,
name
:
UIApplication
.
willEnterForegroundNotification
,
object
:
nil
)
nc
.
addObserver
(
self
,
selector
:
#selector(
anyRefresh(_:)
)
,
name
:
UIApplication
.
willEnterForegroundNotification
,
object
:
nil
)
self
.
definesPresentationContext
=
true
self
.
definesPresentationContext
=
true
if
(
traitCollection
.
forceTouchCapability
==
.
available
)
{
registerForPreviewing
(
with
:
self
,
sourceView
:
self
.
LocationsList
!
)
}
navigationItem
.
title
=
"What's Open"
navigationItem
.
title
=
"What's Open"
navigationController
?
.
navigationBar
.
prefersLargeTitles
=
true
navigationController
?
.
navigationBar
.
prefersLargeTitles
=
true
navigationItem
.
largeTitleDisplayMode
=
.
always
navigationItem
.
largeTitleDisplayMode
=
.
always
...
@@ -744,10 +748,7 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
...
@@ -744,10 +748,7 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
cell
.
layer
.
masksToBounds
=
false
cell
.
layer
.
masksToBounds
=
false
cell
.
layer
.
shadowPath
=
UIBezierPath
(
roundedRect
:
cell
.
bounds
,
cornerRadius
:
cell
.
layer
.
cornerRadius
)
.
cgPath
cell
.
layer
.
shadowPath
=
UIBezierPath
(
roundedRect
:
cell
.
bounds
,
cornerRadius
:
cell
.
layer
.
cornerRadius
)
.
cgPath
self
.
reloadInputViews
()
self
.
reloadInputViews
()
if
(
traitCollection
.
forceTouchCapability
==
.
available
)
{
self
.
registerForPreviewing
(
with
:
self
,
sourceView
:
cell
)
}
return
cell
return
cell
}
}
else
{
else
{
...
@@ -778,9 +779,6 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
...
@@ -778,9 +779,6 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
}
}
cell
.
messageLabel
.
text
=
currentAlerts
[
indexPath
.
row
]
.
message
cell
.
messageLabel
.
text
=
currentAlerts
[
indexPath
.
row
]
.
message
if
(
traitCollection
.
forceTouchCapability
==
.
available
)
{
self
.
registerForPreviewing
(
with
:
self
,
sourceView
:
cell
)
}
return
cell
return
cell
}
}
...
@@ -937,7 +935,6 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
...
@@ -937,7 +935,6 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
guard
let
indexPath
=
LocationsList
?
.
indexPathForItem
(
at
:
location
)
else
{
return
nil
}
guard
let
indexPath
=
LocationsList
?
.
indexPathForItem
(
at
:
location
)
else
{
return
nil
}
if
(
indexPath
.
section
==
1
||
currentAlerts
.
count
==
0
)
{
if
(
indexPath
.
section
==
1
||
currentAlerts
.
count
==
0
)
{
let
cell
=
LocationsList
?
.
cellForItem
(
at
:
indexPath
)
as?
FacilityCollectionViewCell
let
cell
=
LocationsList
?
.
cellForItem
(
at
:
indexPath
)
as?
FacilityCollectionViewCell
previewingContext
.
sourceRect
=
(
cell
?
.
bounds
)
!
guard
let
detailView
=
storyboard
?
.
instantiateViewController
(
withIdentifier
:
"detailView"
)
as?
FacilityDetailViewController
else
{
return
nil
}
guard
let
detailView
=
storyboard
?
.
instantiateViewController
(
withIdentifier
:
"detailView"
)
as?
FacilityDetailViewController
else
{
return
nil
}
detailView
.
facility
=
cell
?
.
facility
detailView
.
facility
=
cell
?
.
facility
return
detailView
return
detailView
...
...
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