Skip to content

Fix Toggle touch input on iOS #1187

Closed

Description

@Kyle-Ye

Summary

On iOS, the default Toggle renders but does not respond to touch input. Tapping the switch does not change its bound state.

Reproduction

import OpenSwiftUI

struct ContentView: View {
    @State var reset = false

    var body: some View {
        Toggle("Reset", isOn: $reset)
    }
}

Run this view on iOS and tap the switch.

Expected behavior

The switch responds to touch input and updates reset. Repeated taps alternate between on and off.

Actual behavior

The switch does not respond to the gesture.

Acceptance criteria

  • The default iOS Toggle responds to touch input and updates its binding.
  • Repeated interactions continue to work.
  • A disabled Toggle does not change its binding.

Activity

  1. added this to the 0.24.0 milestone on Oct 18, 2026
  2. added
    type: bug
    on Oct 18, 2026
  3. added
    area: event-gesture
    area: view
    platform: iOS
    on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: event-gesturearea: viewplatform: iOStype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions