Developing a Mobile Drawer/Sidebar Menu
Consider this: when a user quickly swipes from the left edge of the screen, and the app doesn't react — that's a classic bug in implementing a hamburger menu. On Android, DrawerLayout with NavigationView breaks with nested navigation; on iOS, UINavigationController conflicts with gesture recognizers; and in React Native, @react-navigation/drawer requires precise configuration of react-native-gesture-handler. A configuration error, and the drawer doesn't respond to gestures on a particular device. Our 8-year experience in mobile development allows us to guarantee avoiding these issues by using proven patterns and a modern stack.
How to Avoid Gesture Conflicts in Drawer?
On iOS, edge swipe from the left edge is intercepted by the system back navigation. A drawer with a similar gesture collides. The solution is UIScreenEdgePanGestureRecognizer with explicit require(toFail:): first wait for the navigation gesture to fail, then give control to the drawer. In React Native, similarly: set edgeWidth and screenEdgeGestureEnabled: false on conflicting screens. On Android, this problem doesn't exist — the system back gesture works separately via BackHandler.
Why Does Drawer Animation Lag on Android?
The standard TranslateX via the JS thread in React Native causes noticeable lag on mid-range devices at 60fps. We move animation to Reanimated 3: useAnimatedStyle + withSpring or withTiming execute directly in the UI thread. The smoothness difference is up to 30% on Redmi Note 10. In native development, similarly: on Android we use ViewPropertyAnimator with setInterpolator, on iOS — UIViewPropertyAnimator with UISpringTimingParameters. Using Reanimated 3 instead of the JS thread reduces animation development time by 2 days, which lowers the project budget by 15–20%.
| Platform |
Animation Tool |
Performance (60fps) |
Note |
| iOS |
SwiftUI offset + DragGesture |
60fps stable |
Haptic feedback via UIImpactFeedbackGenerator |
| Android |
DrawerLayout + NavigationView |
55–60fps |
Slightly lower with custom RecyclerView |
| Flutter |
AnimationController + SlideTransition |
60fps |
Full control over animation curve |
| React Native |
Reanimated 3 useAnimatedStyle |
60fps on flagships, 55fps on mid-range |
JS thread drops to 45fps without Reanimated |
For comparison, the react-navigation-drawer library without Reanimated gives 45fps on Xiaomi Redmi Note 10, while with Reanimated it achieves stable 60fps. This makes the choice of tool critical for user experience — Reanimated 3 is 1.3 times faster than the standard JS thread.
Navigation State and Tablet Adaptation
If the drawer contains a nested Stack Navigator, history sometimes resets when closing/opening. We use drawerType: 'permanent' on tablets and lazy: false for critical screens to preserve component state. For Flutter: Scaffold.drawer + DrawerHeader — basic case. For an animated drawer with custom behavior — AnimationController + SlideTransition, bound to GestureDetector with onHorizontalDragUpdate. This gives full control over the animation curve and swipe thresholds.
For native Android: DrawerLayout + NavigationView with NavigationUI.setupWithNavController() — integration with Jetpack Navigation Component. If a custom menu item view is needed, we replace NavigationView with RecyclerView inside the drawer, using DiffUtil for efficient updates.
On iOS with SwiftUI: NavigationSplitView (iOS 16+) covers most cases for iPad/iPhone. For finer control — custom overlay via ZStack + offset + DragGesture, with haptic feedback via UIImpactFeedbackGenerator on full open. Our engineers guarantee compatibility with VoiceOver and TalkBack.
Typical Case from Practice
Case: Food delivery app (Flutter)
From our practice: a food delivery app in Flutter. The sidebar menu contains user profile, order history, and settings. The problem — on fast swipe, the drawer got stuck in a half-open state on Android. Cause: the flingVelocity threshold was set too high. We lowered it to 300 logical pixels/sec, added snap animation via AnimationController.fling() — the drawer now fully closes/opens on any sharp swipe. The project was delivered in 3 days, and we received thanks for attention to UX.
Step-by-Step Drawer Configuration Without Conflicts
- Identify platforms and choose a library:
@react-navigation/drawer for RN, DrawerLayout for Android, custom SwiftUI overlay for iOS.
- On iOS, set up
UIScreenEdgePanGestureRecognizer with require(toFail:) for priority of the system gesture.
- In React Native, disable
screenEdgeGestureEnabled on screens with horizontal scrolling.
- For animations on Android, use
Reanimated 3 (RN) or ViewPropertyAnimator (native).
- Adapt for tablets: on iPad and large screens, enable persistent sidebar.
- Test on real devices: check gestures, smoothness, and accessibility.
Integration with existing architecture reduces refinement costs by 25%. Get a consultation on your project — we'll assess feasibility and timelines. Contact us and we'll develop a drawer that doesn't break on erratic gestures.
What's Included
- Implementation of open/close via hamburger button and swipe gesture
- Overlay (background dim) configuration with proper z-index
- Custom header: avatar, name, email with real-time update support
- Menu item list with icons, badge counters, and active state
- Integration with the app's navigation system (React Navigation, Jetpack Nav Component, Coordinator Pattern)
- Tablet adaptation: persistent sidebar instead of overlay drawer
- Accessibility:
contentDescription, accessibilityLabel, TalkBack/VoiceOver support
Timelines and Cost
Basic drawer implementation with navigation: 1–2 days. With custom design, animations, and integration into existing navigation architecture: 2–3 days. Cost is calculated individually after analyzing requirements and the current project structure. Contact us to discuss details.
UX/UI Design for Mobile Apps: Why a Figma Layout Doesn't Guarantee a Ready Interface
A designer sends a layout—beautiful, with gradients and custom components. The developer opens it and realizes: the button is 36pt, the tap target is 20pt. On an iPhone SE, it's physically impossible to press with a thumb. The bottom sheet covers content when the keyboard appears. Navigation is built against the native iOS model. Apple will reject the app, or users will leave within a week—depending on how lucky you get with the review.
We have been designing mobile UX/UI for over 5 years and have seen hundreds of such situations. During this time, we have designed and helped launch 30+ mobile apps—from fintech products to social networks. You don't need to guess whether the design will pass App Review or Google Play—we embed platform requirements from the first screen. We'll assess your project in one day, contact us.
Mobile UX/UI is not an adaptation of web design. It is a separate discipline with specific platform constraints: safe area, touch gestures, UIViewController lifecycle, Activity state management.
Why Can't You Ignore Human Interface Guidelines and Material Design 3?
Apple HIG and Google Material Design 3 are not aesthetic recommendations. They are documented user expectations formed by years of using system applications. Expectations confirmed by user experience research on mobile platforms (User experience design).
HIG defines: minimum tap target 44×44 pt, safe area insets for notch and Dynamic Island, standard gestures (swipe back on iOS, back gesture on Android 10+). Ignoring safe area is a common mistake. safeAreaLayoutGuide in UIKit and safeAreaPadding in SwiftUI exist precisely for this. A designer who doesn't set safe area margins in Figma guarantees a bug during development.
Material Design 3 introduced Dynamic Color—the color scheme is generated from the user's wallpaper via MaterialTheme.colorScheme in Jetpack Compose. An app that ignores dynamic colors on Android 12+ looks out of place. This is not critical for niche products but is noticeable in mass-market apps.
The most painful platform guideline inconsistencies we encounter on projects:
- Custom navigation on top of system navigation. iOS users expect swipe back from any point on the left edge of the screen. A custom
NavigationController without interactive gesture breaks this. Android users expect the system back button—a custom back button in the left corner does not fully replace it.
- Modal windows instead of navigation push. Bottom sheets are appropriate for actions, not for navigating content.
- Missing haptic feedback.
UIImpactFeedbackGenerator on iOS is not decoration but part of the interface response. Buttons, swipes, and confirmation actions without tactile feedback feel broken.
Table: Comparison of iOS and Android UX/UI Requirements
| Parameter |
iOS (HIG) |
Android (Material Design 3) |
| Minimum tap target |
44×44 pt |
48×48 dp |
| Safe area |
safeAreaLayoutGuide / safeAreaPadding |
Insets in WindowInsets |
| Back gesture |
Swipe from left edge |
System back gesture (Android 10+) |
| Color scheme |
System dark/light |
Dynamic Color from wallpaper |
| Typography |
San Francisco (Dynamic Type) |
Roboto (Material Type Scale) |
| Haptic feedback |
UIImpactFeedbackGenerator |
HapticFeedbackConstants (Compose) |
How to Get the Most Out of Figma?
The Figma Variables API has changed the workflow. Design tokens—colors, typography, radii, spacing—are stored as variables and exported directly to code via figma-tokens or style-dictionary. This eliminates manual value transfer and desynchronization between design and implementation. Practice shows: Figma Variables speeds up asset handoff to development by 2–3 times compared to static frames, and using design tokens reduces code transfer errors by 60%.
Auto Layout with wrap and spacing between elements allows building components that behave like flex containers. A developer opens a component and sees not a static artifact but a description of behavior at different content sizes.
Component Properties—variants, boolean toggles, instance swaps—enable building a full design system right in Figma. A button with 4 states (default, hover, pressed, disabled), 3 sizes, and 2 icon variants is one component, not 24 frames.
Figma Prototype with Variables allows creating an interactive prototype with real state: showing how the screen changes with different variable values. This is no longer just a "clickable layout" but a full UX testing tool.
How to Benefit from Prototyping and UX Testing Before Development?
The most expensive mistake in a mobile product is to develop a feature, release it, and discover that users don't understand how it works. A Figma prototype at the testing stage costs zero development hours. Redoing a finished screen costs days. Testing a prototype before development begins reduces the number of fixes by 80%.
For usability testing, we use Maze (task testing on a prototype—the user goes through a scenario, we get heatmaps and mis-click rates) or direct sessions via UserTesting. Key metrics are task completion rate and time on task, not "like/dislike."
A/B testing on mobile is harder than on web: the App Store doesn't allow UI changes without an app update. Therefore, it's important to test hypotheses on a prototype before release, not through production experiments. According to research, fixing a bug found on a prototype costs 10 times less than after production release. And average task completion time increases by 40% after proper UX optimization during prototyping.
Why Are Animations Critical for Interface Perception?
Animations in mobile apps are feedback. An element doesn't appear instantly—it transitions to the desired state over 200–350 ms. This gives the brain context to understand what happened.
- iOS:
withAnimation in SwiftUI, UIViewPropertyAnimator in UIKit for interactive animations with interruption capabilities. Spring animations with dampingRatio are the basis of most Apple system transitions.
- Android:
AnimatedVisibility, animateContentSize, Crossfade in Compose. MotionLayout for complex scenes with multiple transformations.
- Flutter:
AnimationController + Tween, Hero animations between screens, Lottie for After Effects exports. Lottie is especially effective for onboarding illustrations and empty states.
The key constraint is 16 ms per frame (60 fps) or 8 ms (120 fps on ProMotion devices). Animations must run on the GPU via CALayer/RenderThread, not on the CPU via layoutSubviews. Profiling via Core Animation instrument in Xcode is a mandatory step before releasing animated screens.
Why Is Accessibility Not an Optional Feature?
VoiceOver on iOS and TalkBack on Android are used by up to 15% of users—this statistic is confirmed by accessibility research described in Accessibility (Wikipedia). In absolute numbers for a large app, this is thousands of people. Additionally, App Store rejections due to accessibility occur, though rarely.
Minimum checklist:
- All interactive elements have
accessibilityLabel
- Text contrast ratio at least 4.5:1 (WCAG AA)
- Dynamic Type is supported—the interface doesn't break at maximum font size
- VoiceOver focus flows through the screen in a logical order
SwiftUI automatically generates an accessibility tree from component semantics. UIKit requires manual setup of accessibilityTraits, accessibilityHint, and grouping via shouldGroupAccessibilityChildren.
What Does the Work Include?
The UX/UI design deliverables include:
| Deliverable |
Description |
| User flows and wireframes |
Screen structure and user paths |
| Design system |
Design tokens, components, Style Dictionary for export |
| UI layouts (Figma) |
All screens following platform guidelines |
| Interactive prototype |
Prototype with variables and animations |
| Development specification |
Zeplin / Figma Dev Mode with dimensions, margins, states |
| Maintenance guide |
Recommendations for adding new screens and components |
What Is the Process and Timeline?
Design goes through stages: research and competitive analysis → user flows and wireframes → design system → UI layouts → prototype → testing → handoff to development.
Timeline estimates:
| Scope |
Timeline |
| Redesign of 3–5 screens |
1–2 weeks |
| MVP (10–15 screens) |
3–5 weeks |
| Full product (30+ screens) |
6–10 weeks |
The project scope and timeline are determined after analyzing your requirements—number of screens, component complexity, whether a design system is needed or we work with an existing one. Get a consultation for your project—contact us for a preliminary assessment. Order a complete mobile app design—we'll assess your project in one day and propose the optimal work scope.