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
5053ba1b
Commit
5053ba1b
authored
May 08, 2017
by
Zach Knox
Browse files
Stack view within stack views are fun
parent
a7e0d858
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen/Base.lproj/Main.storyboard
View file @
5053ba1b
This diff is collapsed.
Click to expand it.
WhatsOpen/WhatsOpen/Filters.swift
View file @
5053ba1b
...
...
@@ -15,16 +15,9 @@ struct Filters {
var
showClosed
=
true
var
sortBy
=
SortMethod
.
alphabetical
var
allAllFacilities
=
true
var
facilitiesShown
:
[
Int
:
Bool
]
=
[:]
var
facilities
:
[
Facility
]
init
(
facilities
:
[
Facility
])
{
self
.
facilities
=
facilities
var
count
=
0
for
_
in
facilities
{
facilitiesShown
[
count
]
=
true
count
+=
1
}
init
()
{
}
...
...
WhatsOpen/WhatsOpen/LocationDetailViewController.swift
View file @
5053ba1b
...
...
@@ -18,6 +18,17 @@ class LocationDetailViewController: UIViewController, UITableViewDelegate, UITab
@IBOutlet
var
detailStackView
:
UIStackView
!
@IBOutlet
var
OrderButton
:
UIButton
!
@IBAction
func
orderButton
(
_
sender
:
Any
)
{
}
@IBOutlet
var
NotifyButton
:
UIButton
!
@IBAction
func
notifyButton
(
_
sender
:
Any
)
{
}
var
facility
:
Facility
!
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
@@ -27,10 +38,16 @@ class LocationDetailViewController: UIViewController, UITableViewDelegate, UITab
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
/*
OrderButton.layer.cornerRadius = 10
NotifyButton.layer.cornerRadius = 10
OrderButton.layer.borderWidth = 5
NotifyButton.layer.borderWidth = 5
*/
NameLabel
.
text
=
facility
.
name
PlaceLabel
.
text
=
facility
.
location
var
open
=
Utilities
.
isOpen
(
facility
:
facility
)
let
open
=
Utilities
.
isOpen
(
facility
:
facility
)
if
(
open
)
{
OpenLabel
.
text
=
"OPEN"
OpenLabel
.
backgroundColor
=
UIColor
(
red
:
0.00
,
green
:
0.40
,
blue
:
0.20
,
alpha
:
1.0
)
...
...
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