var to let

This commit is contained in:
Stuart Breckenridge
2022-10-06 20:52:11 +08:00
parent 856515a9f3
commit 871d751640

View File

@@ -86,7 +86,7 @@ class AboutHostingController: NSHostingController<AnyView>, NSToolbarDelegate {
switch itemIdentifier {
case .aboutGroup:
var toolbarItem = NSToolbarItem(itemIdentifier: .aboutGroup)
let toolbarItem = NSToolbarItem(itemIdentifier: .aboutGroup)
toolbarItem.view = segmentedControl
toolbarItem.autovalidates = true
return toolbarItem
@@ -118,7 +118,6 @@ class AboutHostingController: NSHostingController<AnyView>, NSToolbarDelegate {
// MARK: - Target/Action
@objc
func segmentedControlSelectionChanged(_ sender: NSSegmentedControl) {
print(#function)
if sender.selectedSegment == 0 {
rootView = AnyView(AboutNetNewsWireView())
} else {