Skip to content

Customize height of custom view? #160

Closed Answered by xevifar
itsbmac asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @itsbmac ,

We have updated the example to make it easier to follow.

The main pieces of code:

  1. Select the type of height
var defaultViewMode: KeyboardAppViewMode {
        //.fullCover(height: .automatic) // Shows the view over the keyboard, i.e. covering it.
        .frame(barMode: TopBarMode.default, height: .automatic)
    }

Instead of .fullCover change to .frame, which indicates that the view appears on top of the keyboard.

  1. Change the Constraint related to the height of the view:
exampleView.heightAnchor.constraint(equalToConstant: 80)

The example provided is 80, but if you change this number the total height of the container view will adjust to the height.

Let me know if this …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@itsbmac
Comment options

@xevifar
Comment options

Answer selected by itsbmac
@itsbmac
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants