How to create online status view | Swift 5

Online status circle view

Step 1 :

Create ProfilePicture UIImageView
Constraints to ProfilePicture

Step 2 :

Step 3 :

Create small circle view
Constraints to small circle view
Function to calculate the x&y position




iOS Developer — Connect with me

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using Menus in iOS 14

Linear Search in Swift

A Quick Tip: Using Objects

iOS app from Flutter’s showcase page might not use Flutter at all

Building your first App in Xamarin.

GitHub Actions for iOS

Screen Size Classes

Text Recognition with FirebaseML in Swift 5

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
Abu Bäkr

Abu Bäkr

iOS Developer — Connect with me

More from Medium

How to generate authentication token/Notification Certificate in AppStore connect for send push…

Is Swift the Objective Choice now?

Getting iOS device orientation right after the app launch in Swift

Do you know you can test the Apple Push Notification service (APNs) in Simulator?