renamed frame to view

This commit is contained in:
hariroshan 2023-02-25 21:56:51 +05:30
parent f736ac0b48
commit 6cf8af8cb9
3 changed files with 5 additions and 5 deletions

View File

@ -811,7 +811,7 @@ getPage model page =
view : Model -> Native Msg
view model =
model.rootFrame
|> Frame.frame [] (getPage model)
|> Frame.view [] (getPage model)
decodeCar : D.Decoder Car

View File

@ -371,7 +371,7 @@ getPage model page =
view : Model -> Native Msg
view model =
model.rootFrame
|> Frame.frame [] (getPage model)
|> Frame.view [] (getPage model)
subscriptions : Model -> Sub Msg

View File

@ -3,7 +3,7 @@ module Native.Frame exposing
, TransitionCurve(..)
, TransitionName(..)
, defaultNavigationOptions
, frame
, view
, goBack
, goTo
, handleBack
@ -207,8 +207,8 @@ setClearHistory val mod =
{ mod | clearHistory = Just val }
frame : List (Attribute msg) -> (page -> Html msg) -> Model page -> Html msg
frame attrs getPage frameModel =
view : List (Attribute msg) -> (page -> Html msg) -> Model page -> Html msg
view attrs getPage frameModel =
let
children =
[ getPage frameModel.current ]