Skip to content

Instantly share code, notes, and snippets.

@artur-ios-dev
Created February 3, 2020 20:44
Show Gist options
  • Select an option

  • Save artur-ios-dev/7795f8a2f1a09c30dbb5d7ec4a1d0d6d to your computer and use it in GitHub Desktop.

Select an option

Save artur-ios-dev/7795f8a2f1a09c30dbb5d7ec4a1d0d6d to your computer and use it in GitHub Desktop.

Revisions

  1. artur-ios-dev created this gist Feb 3, 2020.
    3 changes: 3 additions & 0 deletions swiftui_endediting_gesture.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    .gesture(DragGesture().onChanged { _ in
                    UIApplication.shared.endEditing(true)
                })