Because there may be a conflict with show from UIViewController, you need to explicitly use the Whisper namespace to call show. The usage of the component is so simple, you just create a message in the case of Whisper, an announcement in the case of a Shout, or a Murmur in the case of a Whistle. As an added bonus, when transitioning from one view controller to another, the next controller's offset will be adjusted as you'd expect. In Whisper, there is no need to think about scroll view insets anymore-this will be handled automatically. Finally, if you want to set how long the Shout should be displayed, you have a duration property. Shouts have an optional action that will be called if the user taps on it, and you'll even get a message when the Shout is gone. BonusĪll sounds are fully customizable, as are colors and fonts. This is the smallest of all, a beautiful discretion in your UI. Let users know that something happened inside the app with this beautiful customizable in-app notification. WhispersÄisplay a short message at the bottom of the navigation bar-this can be anything, from a "Great Job!" to an error message. Whisper is a component that will make the task of displaying messages and in-app notifications simple. Break the silence of your UI, whispering, shouting or whistling at it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |