Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    The Download: The secrets of vitamin D, and an AI party in Africa

    November 23, 2025

    Cisco U. Learning Deals 2025: One Week. Major Savings.

    November 23, 2025

    network – Mac “stuck” on Cloudflare secure DNS somehow; how to get rid of it

    November 23, 2025
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»ios – Pencil hover + tap crashes app since iPadOS 26.0.1 update
    iOS Development

    ios – Pencil hover + tap crashes app since iPadOS 26.0.1 update

    big tee tech hubBy big tee tech hubOctober 22, 2025022 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    ios – Pencil hover + tap crashes app since iPadOS 26.0.1 update
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    Ever since the 26.0.1 update my app crashes for users who are using the Apple Pencil.
    I’ve narrowed it down to the hover function. iPadOS 26 did not crash.

    This is all in a Spritekit project so in an skScene.

    When the user hovers over empty space the hovering is also triggered in the background and they can tap just fine.
    But when the user hovers over an object or a button it will highlight them as intended. However when he then taps on those objects the app insta crashes with below message.
    This all used to work fine for the last year.

    If users disable “hover effects” in the Pencil settings then the crash does not happen.

    Assertion failure in -[UIPencilInteraction
    _handleHoverGestureRecognizer:], UIPencilInteraction.m:895

    Terminating app due to uncaught exception
    ‘NSInternalInconsistencyException’, reason: ‘-[UIPencilInteraction
    _handleHoverGestureRecognizer:]: Received updates from an unknown hover gesture recognizer: )>>’

    Code used:

    var pencTapGesture = UIPencilInteraction()
    var pencHoverGesture = UIHoverGestureRecognizer.init(target: self, action: #selector(self.hoverFunc(sender:))) 
        
    pencHoverGesture.delegate = self
    pencTapGesture.delegate = self
    self.view?.addGestureRecognizer(pencHoverGesture)
    self.view?.addInteraction(pencTapGesture)
    

    Methods triggered:

    @objc func hoverFunc(sender: UIHoverGestureRecognizer) {
        
    if #available(iOS 16.1, *) {
                    
    if sender.state == .began || sender.state == .changed {
        //Some code
    } else {}
                        
    } else {
    //Not available for older OS
    }
        
    //Normal touches detected using tapgestureRecognizer not touchesbegan
    @objc func tapFunc(sender: UITapGestureRecognizer) {
    //Some code
    //Still called before the crash.
            }
        
    //Function being used to detect double taps on the pencil side still works:
    @available(iOS 17.5, *)
    func pencilInteraction(_ interaction: UIPencilInteraction, didReceiveTap tap: UIPencilInteraction.Tap) {
                
    let preferredAction = UIPencilInteraction.preferredTapAction
                
    // Respect the systemwide preferred action to ignore double taps.
    guard preferredAction != .ignore else { return }
    }
    

    Seems like the hover ended/cancelled/failed states are never called in the hoverFunc.

    The tap is just a normal tap, as if a finger would be used. Using fingers the app does not crash btw so it’s purely connected to the Hover that the Pencil activates.

    I also put these .enabled on/off or remove them whenever the game pauses, moves away etc.

    AI is suggesting me to stop using these methods and move to a notificiationcenter approach. Since it used to work before fine I would like to see first if this bug can be found though.



    Source link

    26.0.1 app Crashes hover iOS iPadOS Pencil tap Update
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    swift – How to implement backup/restore to icloud in a flutter ios app

    November 22, 2025

    ios – Apple Mail messages disappeared after IMAP deletion + local move failure (no disk space) – emlx files still exist but appear empty

    November 21, 2025

    Proposed update to B.C.’s EV mandate presents smart tools for automakers and consumers alike but undermines them with one stipulation

    November 21, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    The Download: The secrets of vitamin D, and an AI party in Africa

    November 23, 2025

    Cisco U. Learning Deals 2025: One Week. Major Savings.

    November 23, 2025

    network – Mac “stuck” on Cloudflare secure DNS somehow; how to get rid of it

    November 23, 2025

    The future of AI isn’t chat: Why user experience will make or break the next wave of applications

    November 23, 2025
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    The Download: The secrets of vitamin D, and an AI party in Africa

    November 23, 2025

    Cisco U. Learning Deals 2025: One Week. Major Savings.

    November 23, 2025

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2025 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.