0:04
[Music]
0:10
hey everybody in this video we're going
0:11
to be looking at the device viewer stack
0:15
so basically you're going to add device
0:16
viewer wherever you want on the page and
0:19
there's not many settings here you can
0:21
either have it opened on page load um
0:24
you can remove it from popups which
0:26
we'll talk about in a little bit um if
0:29
it is not move from pop-ups you can
0:31
actually display it as a solo popup and
0:33
we'll talk about that and then you can
0:35
allow this to be published online or
0:38
most of the time we're only using this
0:40
for preview so you're you're going to
0:41
have this off I do want to add if you
0:43
are sure that you're actually done
0:46
testing your site you actually remove
0:47
the device viewer from the page because
0:50
even with publishing turned off there is
0:52
a small amount of java script that can
0:54
be published to your site so if you're
0:57
sure that you don't need it on a
0:58
particular page go ahead and REM remove
1:00
that now before we get started I
1:02
actually want to show you something
1:03
important if you're going to be using
1:05
Safari as your default browser by
1:07
default pop-up windows are blocked
1:09
inside Safari in order for them to
1:13
actually work inside preview you're
1:15
going to want to go into your website
1:18
tabs and your Safari preferences go to
1:20
popup windows and after you preview you
1:24
should see
1:26
1271 enabled or or displayed by default
1:30
it'll be block and notify just set that
1:32
to allow this will allow popup browsers
1:35
to actually work inside preview so when
1:39
you preview your Stacks page this will
1:41
then allow device viewer to actually
1:44
open up the pop-up windows so here we
1:47
are in preview Now by default it will
1:49
open on page load but if you were to
1:50
uncheck that it would basically look
1:52
like this on page load okay uh and then
1:55
you can click on this little button and
1:56
it will display now what's kind of cool
1:58
is whenever you start scrolling it will
2:00
autohide um on
2:02
scroll so when you're ready go ahead and
2:05
click on the select box and you can pick
2:08
any number of
2:10
devices and let's go ahead and choose
2:13
iPhone 10 and there we have our pop-up
2:16
window a pop-up window has come up with
2:19
a window with the exact dimensions of
2:22
that iPhone
2:23
10 now one thing you might notice is we
2:26
chose an iPhone 10 but in this Dropbox
2:28
it shows iPhone 11 Pro so in order to
2:32
help you test on a particular device
2:34
we've added every single possible iPhone
2:37
here but as you probably are aware many
2:39
iPhones actually have the same exact
2:41
resolution so when you choose a
2:45
resolution actually the most recent
2:47
iPhone with that resolution will be
2:49
displayed within the device
2:52
selector now what you'll notice here is
2:54
I'm currently in Safari and if I go
2:57
ahead and choose a different device
2:58
let's go ahead and choose an iPad 10
3:01
you'll notice that a new pop-up window
3:03
has been opened so this way you can
3:06
actually test on
3:08
multiple screens at once so if you want
3:11
to see how something displays on an
3:13
iPhone versus an iPad you can have them
3:15
side by
3:16
side another thing to notice is there's
3:19
actually a rotate button within the
3:20
device selector and if I click on that
3:23
it will then open up another screen that
3:25
has that particular same iPad but
3:28
rotated now if you recall in the
3:29
settings we saw a setting called solo
3:32
popup and unfortunately that feature
3:34
does not work in Safari and Safari will
3:37
only open up new popups for every single
3:40
new one let's have a look inside Firefox
3:42
and Chrome on how it
3:44
behaves so if you want to preview in
3:47
Firefox but yet your default browser is
3:49
something else go ahead and choose
3:51
option command p and this will open up
3:54
preview in browser go ahead and select
3:56
Firefox and say preview at this point it
3:59
shows you our preview and we can choose
4:01
which device we would like to preview
4:02
from let's go ahead and choose any
4:04
device here and now we have our actual
4:08
device we can go and close the main
4:09
Firefox window and what's cool here is I
4:12
can now choose and it'll use the same
4:15
window so I CH chose landscape it just
4:18
used the same exact window I can go
4:20
ahead and choose a new device let's go
4:21
ahead and choose an
4:24
iPad as you see there it actually just
4:27
uses and resizes the existing window
4:30
um this functionality currently isn't
4:32
available in Safari um we filed a bug
4:34
report so hopefully it will get
4:36
resolved and just a quick reminder also
4:39
if you're in a layout and you just
4:41
scroll the actual device selector will
4:43
be hidden so that it doesn't interfere
4:45
with you testing and viewing your
4:47
layouts so if you prefer the Safari
4:50
behavior in all browsers just go ahead
4:51
and turn solo popup off and lastly let's
4:55
show you what remove from popups does so
4:59
here you here we are in preview and
5:00
remember I've turned on the remove from
5:03
popups so let's go ahead and and pick a
5:05
device and what you'll notice is in the
5:08
pop-up windows that come there is no
5:10
device selector so it's not possible to
5:13
actually continue and modify it from
5:16
here basically if I wanted a new one I'd
5:18
have to close that go to the next uh
5:21
window and then launch a new
5:24
device I personally prefer having it
5:27
inside of the pop-up Windows because
5:28
then it kind of gives me an idea I can
5:30
see exactly which device I I selected um
5:34
and I if I scroll it just kind of moves
5:36
out of the way anyway so I can still see
5:38
and visualize my designs um so I do
5:41
prefer it with it there but I wanted to
5:43
give you guys the option to actually
5:44
remove it completely uh from the pop-up
5:52
[Music]
5:57
windows