Giter Club home page Giter Club logo

Comments (9)

mats-claassen avatar mats-claassen commented on July 21, 2024

Have you been able to reproduce this issue? How does it happen that the selectedSegmentedIndex is -1? Does that happen when no segment is selected?

from eureka.

mikeymike9000 avatar mikeymike9000 commented on July 21, 2024

Sorry I don't have more details yet and haven't figured out how to reproduce. It happens quite often so I'll create a video and screenshots next time I run into it. It occurs seemingly randomly when changing from one segment to another after setting them up like this:

<<< SegmentedRow("segs") { $0.value = "Tab1"; $0.options = ["Tab1", "Tab2", "Tab3"] }
<<< SegmentedRow ("segsTab1") { $0.value ="SubTab1"; $0.options = ["SubTab1", "SubTab2", "SubTab3"]; $0.hidden = "$segs != 'Tab1'" }

It occurs on devices as well as simulators and "My Mac (Designed for iPad)", and has been occurring through MacOS 12/13 and Xcode 13/14.

from eureka.

mikeymike9000 avatar mikeymike9000 commented on July 21, 2024

ok I figured out how to recreate:

  1. run my iOS app as "My Mac (Designed for iPad)"
  2. click on the window of another open app to make that app active
  3. click back in the window of my app directly on a Eureka segment

I can only recreate this when running as "My Mac (Designed for iPad)" app and only when the app Touch Alternatives is turned off.

Screenshot 2022-12-13 at 3 42 03 PM

from eureka.

mikeymike9000 avatar mikeymike9000 commented on July 21, 2024
vid.mov

from eureka.

mikeymike9000 avatar mikeymike9000 commented on July 21, 2024

I believed this had also occurred in simulators and on devices for the past year or more but I could be mistaken.

from eureka.

mikeymike9000 avatar mikeymike9000 commented on July 21, 2024

here's an example where it shows the issue including the hack where I select index 0 when avoiding the crash..

Screen.Recording.2022-12-13.at.3.57.33.PM.mov

from eureka.

mikeymike9000 avatar mikeymike9000 commented on July 21, 2024

NOTE: the issue also occurs when my app is created as Ad Hoc or installed via TestFlight.

from eureka.

mats-claassen avatar mats-claassen commented on July 21, 2024

Instead of setting to 0, did you try just returning without doing anything?

from eureka.

mikeymike9000 avatar mikeymike9000 commented on July 21, 2024

Returning without doing anything deselects the Segment's tab visually but doesn't actually hide the tab's content (see attached video). I will continue manually setting the index to 0 in case having it 'unset' while its content is accessible could cause other issues. My current hack/workaround is fine for me, I just wanted to let you know.

I'm also using Swift Package Manager, so what I've done is make a local copy of SegmentedRow.swift in my Xcode project, and renamed the file and class to be SegmentedRowCustom.

Screen.Recording.2022-12-14.at.11.24.48.AM.mov

from eureka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.