Flashlight Gesture
Add to favorites
How to create a flashlight gesture using the drag gesture, geometry reader and learn the difference between translation and location
Build SwiftUI apps for iOS 16
1
Build SwiftUI apps for iOS 16
16:02
2
Xcode 14 Visual Editor
12:06
3
Basic Layout and SF Symbols 4
14:58
4
SF Width Styles and Gradients
12:34
5
Variable Color and Animation
11:38
6
Navigation Stack
6:21
7
Navigation Destination and Data
9:17
8
Half Sheet and Binding
10:01
9
Long Press and AppStorage
8:07
10
Charts
8:43
11
Grid Layout
9:46
12
SVG to SwiftUI
10:55
13
View That Fits
7:48
14
Custom Layout
9:06
15
Radial Layout
7:26
16
AnyLayout Transition
3:42
17
Inner Shadows
6:27
18
OnAppear Animation
6:21
19
3D Card with Holo Effect
5:00
20
Reflections and Blending
9:34
21
Drag Gesture on X and Y
6:09
22
Holographic Effect
5:54
23
Liquid Action Button
8:01
24
Canvas Filters
7:06
25
Blur Animation
9:33
26
Motion Manager
9:12
27
Compass App
9:22
28
Circular Text on Path
4:58
29
Flashlight Gesture
5:53
30
Flashlight Masking
5:59
31
Core Location
12:34
32
Custom Sheet
10:00
33
Radial Button Animation
11:36
34
Long Press Button Animation
9:53
35
Tooltip Glow Animation
17:53
This tutorial covers how to create a flashlight gesture in SwiftUI, using a drag gesture to update the state and a radial gradient to create the light effect. Learn the differences between using the location’s CGPoint or the translation’s CGSize. Also, use GeometryReader’s frame in global to center the elements instead of starting from the top left position.
Purchase includes access to 50+ courses, 320+ premium tutorials, 300+ hours of videos, source files and certificates.
Templates and source code
Download source files
Download the videos and assets to refer and learn offline without interuption.
Design template
Source code for all sections
Video files, ePub and subtitles
Browse all downloads
1
Build SwiftUI apps for iOS 16
Create animated and interactive apps using new iOS 16 techniques using SwiftUI 4 and Xcode 16
16:02
2
Xcode 14 Visual Editor
Get familiar with the visual editor and explore the inspector, modifiers and the new preview variants
12:06
3
Basic Layout and SF Symbols 4
Build a basic layout in code using SwiftUI styles and SF Symbols 4
14:58
4
SF Width Styles and Gradients
Implement SF Font Expanded, Condensed, Compressed and apply beautiful gradients to your UI
12:34
5
Variable Color and Animation
Creating a simple animated SF symbol with variable color
11:38
6
Navigation Stack
Create a menu using the navigation stack and customize the list style and labels
6:21
7
Navigation Destination and Data
Write the data model, sample and destinations for your Navigation Stack
9:17
8
Half Sheet and Binding
Present a bottom sheet UI natively and control the sizes and drag zones
10:01
9
Long Press and AppStorage
Using the long press gesture to open a menu and switch between screens
8:07
10
Charts
SwiftUI provide easy and straightforward ways to create and customize different types of charts in your app, including Bar and Line charts
8:43
11
Grid Layout
Grid layout enables developers to create custom table, grid, and other designs with greater flexibility and control over individual cells
9:46
12
SVG to SwiftUI
How to use SVG code from Figma shapes to create custom Hexagon Shapes and customize their background and stroke gradients in SwiftUI.
10:55
13
View That Fits
ViewThatFits in iOS 16 allows developers to create adaptable layouts with simple conditions
7:48
14
Custom Layout
Create complex layouts by placing subviews and transforming values
9:06
15
Radial Layout
Create a custom layout that spreads in a circular way using the Layout protocol
7:26
16
AnyLayout Transition
Create a seamless transition between custom layouts using AnyLayout and animation states
3:42
17
Inner Shadows
Use Foreground Style to add inner and drop shadows to your views
6:27
18
OnAppear Animation
Design clock hands and animate in a circular motion using onAppear and the animation modifier
6:21
19
3D Card with Holo Effect
Create a 3D card with a holographic effect using reflections and parallax in SwiftUI
5:00
20
Reflections and Blending
Step-by-step guide to creating a holographic effect using glass layers, blending modes, gradients, and shadows
9:34
21
Drag Gesture on X and Y
How to create an eye-catching 3D Drag Gesture effect using the DragGesture, rotation3DEffect on both X and Y axis
6:09
22
Holographic Effect
How to create a 3D parallax effect, interactive holographic effect, and reflection movements with gesture control
5:54
23
Liquid Action Button
How to create an interactive action button using SwiftUI's Canvas to add morph animations, materials, and shadows
8:01
24
Canvas Filters
How to use Canvas symbols, filters and animation to create a liquid action button
7:06
25
Blur Animation
How to create animations with blur, motion, scaling, and rotation, as well as adding a drag gesture to liquid action button
9:33
26
Motion Manager
Use the CMMotionManager to create motion parallax reflections using the physical motion of the device
9:12
27
Compass App
Implement an iOS Compass app using SwiftUI: advanced layout, circular text, flashlight gesture and custom sheet
9:22
28
Circular Text on Path
Turn text into an array and create a circular path with the help of GeometryReader, PreferenceKey and Rotation Effects.
4:58
29
Flashlight Gesture
How to create a flashlight gesture using the drag gesture, geometry reader and learn the difference between translation and location
5:53
30
Flashlight Masking
Use masking and drag gesture in SwiftUI to show or hide elements of the user interface, including circles, waypoints and flashlight effects
5:59
31
Core Location
Use Core Location Manager to get compass directions, convert degrees to cardinal points, and update the UI
12:34
32
Custom Sheet
Create a custom sheet in SwiftUI with Markdown and add a tap gesture using 3D transforms
10:00
33
Radial Button Animation
Make a custom button with radial gradients and glow animation using a long press gesture
11:36
34
Long Press Button Animation
Utilizing Long Press Gesture and Progressive Animation in SwiftUI
9:53
35
Tooltip Glow Animation
Create a floating tooltip with glow animations, angular gradients and blend modes
17:53
Meet the instructor
We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.
Meng To
I design, code and write
Meng To is the author of Design+Code. Meng started off his career as a self-taught designer from Montreal and eventually traveled around the world for 2 years as his US VISA was denied. During his travels, he wrote a book which now has 35,000 readers.
39 courses - 181 hours
Build SwiftUI apps for iOS 18 with Cursor and Xcode
In this course, we'll explore the exciting new features of SwiftUI 6 and Xcode 16 for building iOS 18 apps. From mesh gradients and text animations to ripple effects, you'll learn how to create polished, highly custom apps using the latest workflows. We'll also dive into using Cursor and Claude AI for AI-driven coding, helping you start strong and customize your apps.
3 hrs
Create your Dream Apps with Cursor and Claude AI
Learn to build your dream web apps from the ground up using Cursor, Claude AI, and a suite of powerful AI tools. This course covers everything you need, including React for frontend development, Firebase for backend integration, and Stripe for handling payments. You’ll also dive into advanced AI tools like Claude Artifacts, Galileo AI, v0.dev for UI, Ideogram for design generation, and Cursor Composer for full-scale development.
5 hrs
Build a React Site from Figma to Codux
In this course, you'll learn to build a website from scratch using Codux, starting with a Figma template. You’ll master responsive design, collaborate with developers on a real React project, export CSS from Figma using Locofy, set up breakpoints with media queries, add CSS animations, improve SEO, create multiple pages with React Router, and publish your site. By following best practices, you’ll bridge design and development, improve your web design skills.
2 hrs
Create 3D UI for iOS and visionOS in Spline
Comprehensive 3D Design Course: From Basics to Advanced Techniques for iOS and visionOS using SwiftUI
3 hrs
Master No-Code Web Design with Framer
In this free Framer course, you'll learn to create modern, user-friendly interfaces. Start with dark mode and glass designs, then move from Figma to Framer, using vectors and auto layout for responsive websites. Add animations, interactive buttons, and custom components with code. Finally, you'll craft a design system suitable for teamwork or solo projects, all in a straightforward and practical approach.
4 hrs
Build SwiftUI Apps for iOS 17
In this course, we’ll be exploring the fresh and exciting features of SwiftUI 5! As we craft a variety of iOS apps from the ground up, we'll delve deep into the treasure trove that is SwiftUI's user interface, interactions, and animations.
4 hrs
Build Beautiful Apps with GPT-4 and Midjourney
Design and develop apps using GPT-4 and Midjourney with prompts for SwiftUI, React, CSS, app concepts, icons, and copywriting
4 hrs
Build SwiftUI apps for iOS 16
Create animated and interactive apps using new iOS 16 techniques using SwiftUI 4 and Xcode 14
5 hrs
Build a 3D Site Without Code with Framer
Design and publish a responsive site with 3D animation without writing a single line of code
3 hrs
Create 3D Site with Spline and React
Design and code a landing page with an interactive 3D asset using Spline and CodeSandbox
1 hrs
Build an Animated App with Rive and SwiftUI
Design and code an iOS app with Rive animated assets, icon animations, custom layouts and interactions
3 hrs
Build a SwiftUI app for iOS 15 Part 3
Design and code a SwiftUI 3 app with custom layouts, animations and gestures using Xcode 13, SF Symbols 3, Canvas, Concurrency, Searchable and a whole lot more
4 hrs
Build a SwiftUI app for iOS 15 Part 2
Design and code a SwiftUI 3 app with custom layouts, animations and gestures using Xcode 13, SF Symbols 3, Canvas, Concurrency, Searchable and a whole lot more
3 hrs
Build a SwiftUI app for iOS 15
Design and code a SwiftUI 3 app with custom layouts, animations and gestures using Xcode 13, SF Symbols 3, Canvas, Concurrency, Searchable and a whole lot more
4 hrs
React Livestreams
Learn how we can use React Hooks to build web apps using libraries, tools, apis and frameworks
4 hrs
Design Founder Livestreams
A journey on how we built DesignCode covering product design, management, analytics, revenue and a good dose of learning from our successes and failures
2 hrs
SwiftUI Advanced Handbook
An extensive series of tutorials covering advanced topics related to SwiftUI, with a main focus on backend and logic to take your SwiftUI skills to the next level
4 hrs
iOS Design Handbook
A complete guide to designing for iOS 14 with videos, examples and design files
2 hrs
SwiftUI Handbook
A comprehensive series of tutorials covering Xcode, SwiftUI and all the layout and development techniques
7 hrs
Build a web app with React Hooks
Learn how we built the new Design+Code site with React Hooks using Gatsby, Netlify, and advanced CSS techniques with Styled Components.
4 hrs
UI Design Handbook
A comprehensive guide to the best tips and tricks for UI design. Free tutorials for learning user interface design.
2 hrs
Figma Handbook
A comprehensive guide to the best tips and tricks in Figma
6 hrs
SwiftUI for iOS 14
Build a multi-platform app from scratch using the new techniques in iOS 14. We'll use the Sidebar and Lazy Grids to make the layout adaptive for iOS, iPadOS, macOS Big Sur and we'll learn the new Matched Geometry Effect to create beautiful transitions between screens without the complexity. This course is beginner-friendly and is taught step-by-step in a video format.
3 hrs
SwiftUI Livestreams
This is a compilation of the SwiftUI live streams hosted by Meng. Over there he talks and teaches how to use design systems, typography, navigation, iOS 14 Design, prototyping, animation and Developer Handoff.
19 hrs
UI Design Livestreams
This is a compilation of the UI live streams hosted by Meng. Over there he talks and teaches how to use design systems, typography, navigation, iOS 14 Design, prototyping, animation and Developer Handoff.
26 hrs
UI Design for Developers
In this course we'll learn how to use design systems, set up break points, typography, spacing, navigation, size rules for adapting to the iPad, mobile and web versions, and different techniques that translate well from design to code.
3 hrs
Build an app with SwiftUI Part 3
This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.
4 hrs
Build an app with SwiftUI Part 2
This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.
4 hrs
Build a full site in Webflow
Webflow is a design tool that can build production-ready experiences without code. You can implement CSS-driven adaptive layouts, build complex interactions and deploy all in one tool. Webflow also comes with a built-in content management system (CMS) and Ecommerce for creating a purchase experience without the need of third-party tools.
3 hrs
Advanced Prototyping in ProtoPie
ProtoPie is a cross-platform prototyping tool that creates prototypes nearly as powerful as those made with code, with half of the efforts, and zero code. It's perfect for designers who want to quickly experiment with advanced interactions using variables, conditions, sensors and more.
3 hrs
Build an app with SwiftUI Part 1
This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.
4 hrs
React Native for Designers Part 2
React Native is a popular Javascript framework that builds on top of React by using native components to create a real mobile app indistinguishable from one made using Xcode or Android Studio. The main difference with native development is that you get to use CSS, hot-reload, Javascript and other familiar techniques that the Web has grown over the past decades. Most importantly, you're building for both iOS and Android using the same codebase.
3 hrs
React Native for Designers
React Native is a popular Javascript framework that builds on top of React by using native components to create a real mobile app indistinguishable from one made using Xcode or Android Studio. The main difference with native development is that you get to use CSS, hot-reload, Javascript and other familiar techniques that the Web has grown over the past decades. Most importantly, you're building for both iOS and Android using the same codebase.
5 hrs
Design System in Figma
Learn how to use and design a collaborative and powerful design system in Figma. Design Systems provide a shared library of reusable components and guidelines and that will let you build products much faster
3 hrs
React for Designers
Learn how to build a modern site using React and the most efficient libraries to get your site/product online. Get familiar with Grid CSS, animations, interactions, dynamic data with Contentful and deploying your site with Netlify.
3 hrs
Swift Advanced
Learn Swift a robust and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV and Apple Watch
9 hrs
Learn Swift
Learn Swift a robust and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV and Apple Watch
4 hrs
Learn Sketch
Learn Sketch a design tool entirely vector-based and focused on user interface design
5 hrs
Learn iOS 11 Design
Learn colors, typography and layout for iOS 8
1 hrs