Originally created by: furby-tm
Bit of a noisy commit, sorry about that. This repo should use a formatter, SwiftFormat is a good one.
It appears to be a SwiftUI bug, however applying a .buttonStyle()
modifier, even with a PlainButtonStyle()
appears to break the ability to click on any of the Server (AKA Guild) buttons -- at least on macOS 14 Sonoma. Not sure if it's functioning correctly on macOS 13 Ventura or below.
In this revision I've removed the .buttonStyle()
which introduces the default style -- slightly ugly rounded rect button backgrounds to the buttons, however; it restores the functionality of these buttons in the meantime.
The work for that can be summarized in the changes within the following files:
- ContentView
- ServerButton
- ServerFolder
There was also a fix for the settings window, as it does not open on versions macOS 14 Sonoma and above without being opened from within a SettingsLink
closure.
If server buttons are working as expected for older versions of macOS, I can clean these changes up and work out of a macOS 14 Sonoma branch which you can merge at some point down the line.
Thanks! I appreciate your work so far on Swiftcord, the Swift community keeps getting more interesting by the day 😄.
Originally posted by: Candygoblen123
Hi,
Thanks for the suggestion, but we already have a linter.
Could you please revert the team ID in the Xcode project back to what it was originally?