Comments (9)
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.
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.
ok I figured out how to recreate:
- run my iOS app as "My Mac (Designed for iPad)"
- click on the window of another open app to make that app active
- 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.
from eureka.
vid.mov
from eureka.
I believed this had also occurred in simulators and on devices for the past year or more but I could be mistaken.
from eureka.
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.
NOTE: the issue also occurs when my app is created as Ad Hoc or installed via TestFlight.
from eureka.
Instead of setting to 0, did you try just returning without doing anything?
from eureka.
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)
- SegmentControl animates when changing userInterfaceStyle HOT 10
- question of remove insert animation HOT 1
- How to set the position and size of the form HOT 2
- What is the difference between cellUpdate and cellSetup? HOT 1
- TimePickerRow is undeletable in MultivaluedSection HOT 2
- The image of the minus button does not disappear in MultivaluedSection for MultivaluedOptions = [.Insert] HOT 2
- App Store Connect Operation Error: The app references non-public selectors HOT 11
- dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib HOT 2
- Extend cell with another cell
- Section custom header with xib file+class HOT 10
- Reordering sections and rows will return the same initial order and not the updated ones HOT 2
- custom Table Inline Row
- SwitchRow Not responding to second time from user interaction HOT 1
- M1 chip Computer + React Native 0.68 + Xcode 14.2 = Compiling Error HOT 1
- Enable BUILD_LIBRARY_FOR_DISTRIBUTION
- Any rule to validate special characters/ numbers in text field in a cell HOT 1
- Food
- How to turn off the capitalization of Section header tiitle? HOT 1
- Bug in iOS 17 Crash app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eureka.