In case your app needs your own notification system, this article will help you understand, how it works.

Image for post
Image for post
Custom push view

Difficulty: Medium
Read time: 15 min

Basics

So, what is a push notification in details? Some UIView with information, thatโ€™s showing on top of any other view in your app. Even when you pushing new screen, it still stays on top.

What else? This UIView definitely has UIPanGestureRecogniser to swipe it away or pull down for extra content and UITapGestureRecogniser to do some work when user tap it.

Sounds pretty easy. But how to make it pin on top of all other views?

Tarasios

iOS Developer ๐Ÿ‡ท๐Ÿ‡บ, Cyprus ๐Ÿ‡จ๐Ÿ‡พ

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store