I want to achieve a UI like iOS control center.

Asked 5 months ago, Updated 5 months ago, 13 views

Hi, nice to meet you.I am currently developing a scheduling application using a calendar.

So, how do I implement functions such as swiping the top end of the view upward and moving it to full screen with animation, or swiping it back to its original display, as shown in the image below (lower half of the screen, under the calendar)?


I would appreciate it if you could let me know.I look forward to hearing from you.


Thank you for your advice.
As shown in the image below, I implemented similar behavior by adding an upward UISwipeGestureRecognizer to the upper end of the lower half of the view, moving to another full-screen View Controller, and closing the screen by adding a downward UISwipeGestureRecognizer to the upper end of the view controller.

However, of course, this is just a screen transition, and I think it's fundamentally different from the function I'm referring to.(In the reference image, the screen does not transition, but when you swipe up, the view just pops up.)

I have little experience in development and I have no idea how to implement it.

I look forward to hearing from you.


swift ios

2022-09-30 11:40

1 Answers

There are many approaches, but I think the most helpful one is Apple's demo.

If you refer to the wwdc video below, you will find out.
Apple WWDC 2017-Session 230-iOS
First, check out the demo around 14 minutes.

For code, please refer to Github leak.
Demo at Github

2022-09-30 11:40

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.