Comments (2)
Although everything works on iOS, I only have expectations of it being useful on an iPad. I my own usage, I just drop back to navigation to full screen views on an iPhone when I'm using a SplitView on the Mac (using Catalyst). As you say, I don't think there is any precedence for a splitter on iOS, so I am just avoiding it myself to avoid confusing users and cramping the screen. For these reasons, I don't really feel motivated to invest in a more native default for iOS, although if you created one that could be made visible via Splitter+Extensions.swift
, I would love to take a PR on it.
On the Mac, where I'm not using a custom Splitter, I have just been using .splitter { Splitter.line() }
. I wonder if I could something more like Splitter.macOS
that used Divider, so that it automatically gets the right color. Did you find Color.secondary.opacity(colorScheme == .dark ? 0.7 : 0.5)
at some reputable source, or it it just a guess, and do you know if that applies to Dividers? I'd still need to force a default width so that the mechanics of splitting the view works properly.
Altho I'm using a RoundedRectangle for the default splitter, it should be the same as Capsule since the radius is always half the width.
from splitview.
Thanks for your thoughts! I can contribute my experiments a bit later
The opacity is just from eyeballing it, I can measure more exactly
from splitview.
Related Issues (20)
- Issue When Dragging a Splitter Outside the Parent Window on MacOS HOT 4
- Instantiating from a simpler format? HOT 1
- Change cursor on Mac when inside splitter HOT 4
- UserDefaults - working ? HOT 6
- Set SplitView Constraints Maximum HOT 1
- Set SplitView Constraints by absolute number HOT 1
- Nested views ad infinitum HOT 3
- Sticky buttons in secondary views or on press repeat HOT 4
- Feature: minimum split size HOT 8
- Bug: splitter line should be invisible when hidden HOT 2
- divider's visual bug HOT 11
- Option to offset views instead of changing frame size HOT 5
- Breakpoints & animations HOT 1
- Hidden view still visible partly HOT 4
- Custom splitter using drag-to-hide
- Setting fraction programmatically (after the split view is shown already) HOT 2
- CustomSplitter disappears when constraints is set HOT 4
- Bug when hiding splitview while using minimum fractions HOT 3
- Fraction animation 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 splitview.