sparrowcode / AlertKit

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
https://sparrowcode.io/frameworks
MIT License
2.33k stars 131 forks source link

Alert appears behind keyboard if the keyboard is open. #7

Closed tijme closed 4 years ago

tijme commented 4 years ago

I'm using SPAlert in a passcode view. Whenever a user enters an incorrect password, SPAlert will show an alert message with an icon. However, the alert appears partly behind the keyboard that is open.

Is there any layout option that resolves this?

Version in use: 1.1.1

ivanvorobei commented 4 years ago

Hi!

Keyboard always top view, it system required.

ivanvorobei commented 4 years ago

Thank you for your words on Twitter, I am very pleased!

tijme commented 4 years ago

Hi!

Keyboard always top view, it system required.

That's true. It would be really nice if there was an option to center the alert between the top of the screen and the top of the keyboard though. For example by adding a bottom constraint that is always equal to the current height of the keyboard.

I'll take a look and see if I can accomplish this somehow.

ivanvorobei commented 4 years ago

@tijme it good idea. If you do it, please, create pull request. If not- I am added it

tijme commented 4 years ago

I will try to implement it when I have time, but it can take a while though.

ivanvorobei commented 4 years ago

Wait you new PR)