0

I am new to iOS development. I could see Apple's guide about Modality. However, I don't know how to implement a custom modal dialog that looks similar to how Gmail app's: Gmail custom modal dialog

How should I get started? Are there sample codes anywhere for self-learners to follow along?

Thanks a lot

3
  • have you considered just using simple UIView and another UIView to shadow background, you can place it in the center using autolayout. Recently I have implemented something similar, popup from bottom-up and I could not find any ready solutions either Commented May 6, 2021 at 15:28
  • here's the link if you want to check out gist.github.com/milano95a/… Commented May 6, 2021 at 15:39
  • You can use UIViewController with top, bottom, left, right constraints using an auto-layout or from a storyboard and with a transparent background view. There will be UIView and this UIView will have imageView and two labels and one button with in the UIView this views will have auto layout constraints respect to UIView Commented May 6, 2021 at 16:11

1 Answer 1

1

You should investigate UIViewControllerTransitioningDelegate examples.

This will allow you to define a custom transition that you could reuse across a number of different view controllers. It also allows you to decouple transition logic from where the modal is being presented or what is being presented.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.