Code Monkey home page Code Monkey logo

Comments (7)

Sjmarf avatar Sjmarf commented on May 24, 2024

Interesting idea! I might look into implementing this sometime.

from swiftcord.

Sjmarf avatar Sjmarf commented on May 24, 2024

Update: this is quite difficult to do well without MacOS 13+. I was unable to find a good enough solution. Here's what I tried:

  • Using a HStack to arrange the server bar next to the main content. This is what we are doing with the regular server bar right now. The problem with this is that the server bar with names would be neither resizable nor collapsible.

  • Using a HSplit to arrange them. This doesn't work well because it adds resize handles to the regular server bar, which isn't good. It also doesn't solve the issue of collapsibility.

  • Creating a 3-column NavigationView does exactly what I want, except that it's got a minimum column width. This makes the regular server bar too wide. I was unable to change this minimum column width.

If anyone has any better solutions, feel free to have a go at it. If not, I think we should wait until MacOS 13 where NavigationSplitView is implemented, which solves this problem.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 24, 2024

@now-its-dark thanks for the suggestion. As @Sjmarf has mentioned, it appears to be difficult to harmoniously implement always-displayed server-names, so I'd love to hear about potential UI designs/mockups from you :D If they are feasible, we might consider implementing them in the future.

from swiftcord.

now-its-dark avatar now-its-dark commented on May 24, 2024

Hi @cryptoAlgorithm, it seemed like the main issue was more a limitation of the current Swift UI until the next update. If there is an interest though, I do have some concrete thoughts on how to accommodate an expanded server list view and the dm list view, without creating clutter. I'll try and mock something up tonight :-)

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 24, 2024

@now-its-dark sure, I look forward to your mockups. I think it should be possible to accommodate an expandable server list with the current version of SwiftUI, I think the issue is that we just don't know how to make it look good and "discord-like"

from swiftcord.

now-its-dark avatar now-its-dark commented on May 24, 2024

Hi there!
I had meant to follow up on this sooner, but got rather sick shortly after.

The concept I had in mind looks something like this: Chat and Server List are two distinct components of the Discord experience and imo, they should be treated as such in the UI. A tabbed navigation between the two seems like the most straightforward approach.

The attached mock is using the stock Discord UI- I had hoped to adjust it to match the Swiftcord UI when sharing this, but the issue mentioned on bug #167 has been happening for me, so I'm unable to get past login, in order to screen-cap it and use that as a reference.
discordTabUIConcept

My thinking was that the two views would be decoupled in such a way, that the last server or DM to be viewed would be the one presented when clicking the respective tab, so you could easily jump between the last viewed for either one.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 24, 2024

@now-its-dark thank you for getting back! Apologies for the issue you're experiencing, a temporary fix has been posted in Swiftcord's Discord server and will be incorporated in the next release.

As for the mock-ups, I kind of dig the Servers/Friends tabbed design. Widening the sidebar seems worth it to combine DMs and servers this way. However, since I'd like to keep the overall sidebar width (server + channel list) roughly the same, do you have any ideas how to incorporate the channel list into your existing mockups in a way that doesn't significantly increase the total sidebar width?

from swiftcord.

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.