macos: show build in about window

This commit is contained in:
Mitchell Hashimoto
2024-03-27 09:56:56 -07:00
parent b743b797f6
commit 1be85e9d36
2 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22689"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>

View File

@ -22,6 +22,12 @@ struct AboutView: View {
.font(.body)
.textSelection(.enabled)
}
if let build = self.build {
Text("Build: \(build)")
.font(.body)
.textSelection(.enabled)
}
}
.frame(minWidth: 300)
.padding()