Giter Club home page Giter Club logo

Comments (2)

stevengharris avatar stevengharris commented on May 29, 2024 1

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.

aehlke avatar aehlke commented on May 29, 2024

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)

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.