Skip to content

Commit 34f995a

Browse files
committed
Include getting the view port
1 parent 52cd988 commit 34f995a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/scenic/view_port.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ defmodule Scenic.ViewPort do
9696
Pass in the same set of opts that you would use when starting `Scenic` in your
9797
supervision tree. For example:
9898
99+
# Assuming you use the default view port name from the generator
100+
{:ok, view_port} = Scenic.ViewPort.info(:main_viewport)
101+
99102
opts = [
100103
name: name,
101104
module: Scenic.Driver.Local,

0 commit comments

Comments
 (0)