Simple class to get updates about keyboard visibility

Hello dear reader, today we create reusable class to provide convenient way to observe keyboard visible frame and update UI.

What we need to start?

  • Swift Storyboard simple app project
    *it can be implemented for SwiftUI via ViewModifier wrapper
  • UIKit framework

Preparation

Create a new Single View App project.

Hotkey: shift + command + N


Hello dear reader, so now we’ll create simple app that demonstrates how LocalAuthentification works to auth via Touch/Face ID and detect their changes.

What we need to start?

  • Swift UI simple app project
  • LocalAuthentification framework

Preparation

Create a new Single View App project.

Hotkey: shift + command + N


Hello dear reader!
Today we’ll cook AudioPowerVisualizerView which animate scale depends on sound power meter.

AudioPowerVisualizerView

So, what ingredients we need to have?

Let’s sum up some theory about components before.

UIKit

Important

Use UIKit classes only from your app’s main thread or main dispatch queue, unless otherwise indicated. This restriction particularly applies to classes derived from UIResponder or that involve manipulating your app’s user interface in any way.

Read more on Apple Developer.

AVAudioPlayer

The AVAudioPlayer class lets you play sound in any audio format available in iOS and macOS. You implement a delegate to handle interruptions…


Hello dear reader. Today we’ll cook a cool label view with fill animation from one to another color.

MaskedLabelView

So, what ingredients we need to have?

Let’s start.

Create MaskedLabelView class

Example of usage

Result


Hello dear reader. How much times you try to avoid UIStoryboardSegue comparison?

like that

Let’s create a simple struct to make it more convenient

And now use it in ViewController

So, as a result you have a clear segue detection, grammar mistakes avoiding and extendable solution.

You’ve done it! Clap! Clap!

Remember, the receipt to success is continuous learning and communication with colleagues including, self-education.

Subscribe to my account to get notifications about new stories.

If you still have questions — write about it in the comments. I’ll answer them in future articles.


Define a new extension point for password manager apps for integration with Password AutoFill.

*Note: Screenshot generated from AppCode.

Hello dear reader. We’ll analyze two themes in that article “how to use safari controller in auth flow” and “how to get auth token from Fitbit API”.

Let’s start with app management.

Register an application on Dev Fitbit.

*You should register account on Fitbit first.

Fitbit app data
  • Get app secret as result


UIActivityViewController by example

How to share link to FB Messenger, Telegram or create custom share activity?
So, it’s simple using UIActivityViewController.

UIActivityViewController is a view controller that you use to offer standard services from your app.

Also, you can create your custom Activity subclass to provide own action.

UIActivityViewController with custom UIActivity

Let’s look over code and describe what api we use.

extension for UIActivity.ActivityType a new static constant which used to identify custom ClapActivity subclass of UIActivity.

ClapActivity a subclass of UIActivity with that contains custom perform() logic. In our case that is an UIAlertController with OK action.

ViewController is the simple…


Hi again! Today we’ll implement Animation for UITabBarController tab changes using UIViewControllerAnimatedTransitioning protocol.

Preparation

Create a new Single View App project.

Hotkey: shift + command + N


Hello dear reader. Today we’ll make a protocol with default implementation which we can use for all kinds of UIView to animate it’s touch effect.

AnimatableButton

Preparation

Create a new Single View App project.

Hotkey: shift + command + N


Do you want to start coding applications for iOS?
This course provide a tour to iOS coding world!

Journey path:

You’ve done it! Clap! Clap!

Remember, the receipt to success is continuous learning and communication with colleagues including, self-education.

This was a small guide about Swift Dev Course Journey. Read more on Apple Developer site. Don’t stop self-education.

Subscribe to my account to get notifications about new stories.

Are you still have questions about iOS Development? Write about it to me maksimvialyx@gmail.com.

Maxim Vialyx

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