NSAbout is a super simple about window for macOS platform.
- macOS 10.14+
let content = AboutContent(
name: Bundle.main.appName ?? "USTCBot",
version: "Version \(Bundle.main.releaseVersionNumber ?? "7.0")"
+ " (Build \(Bundle.main.buildVersionNumber ?? "2103"))",
info: "Designed by Hengyu\nUniversity of Science and Technology of China",
url: URL(string: "https://artlvr.com")
)
let aboutWindow = AboutWindowController(content: content)
aboutWindow.showWindow(nil)
NSAbout could be installed via Swift Package Manager. Open Xcode and go to File -> Add Packages..., search https://github.com/hengyu/NSAbout.git
, and add the package as one of your project's dependency.
- Download code from GitHub;
- Drag & drop the
Sources
folder into your project.
NSAbout is released under the MIT License.