Skip to content

Swiftification.#3

Open
ShikiSuen wants to merge 3 commits intoTroikaTronix:mainfrom
ShikiSuen:Swiftify
Open

Swiftification.#3
ShikiSuen wants to merge 3 commits intoTroikaTronix:mainfrom
ShikiSuen:Swiftify

Conversation

@ShikiSuen
Copy link

@ShikiSuen ShikiSuen commented Jan 9, 2023

I rewrote this entire project in Swift. The Swift version is named as NSClassicAlert instead in order to avoid naming confliction issues.

In the project, the Swift version is provided as a framework. However, it is easy to reorganize it as a Swift package.

The default UI font and its size are changed to the default fonts used since macOS 10.11 El Capitan in lieu of specifically specifying the Helvetica Neue (which is Yosemite-specific).

There are only one issues left:

  1. Button selectors are not executed at all.

Note: There is no "releaseAll()" in the Swift version since Swift ARC automatically handles this.
If introducing releaseAll(), the message texts immediately disappear after the alert panel loaded successfully.

@ShikiSuen
Copy link
Author

ShikiSuen commented Jan 9, 2023

Update: I found a dark-mode issue that texts appear black when being clicked.
(This has been solved in the following commit.)
image

@ShikiSuen
Copy link
Author

ShikiSuen commented Jan 9, 2023

Both the icon rendering issue (Swift-ver. only) and the text color issue (both ObjC and Swift ver.) are solved.

@ShikiSuen
Copy link
Author

I concatenated recent commits since they are too much, including the removal of some useless comments I added previously in the Swift version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant