NSTouchBar() mainBar.delegate = self mainBar.customizationIdentifier = .imageViewer mainBar.defaultItemIdentifiers = [.sharingPicker, .strokePopover, .strokeColorPicker, .photoPicker, .flexibl eSpace, .clearButton, .otherItemsProxy] mainBar.customizationAllowedItemIdentifiers = [.strokeSlider, .strokePopover, .photoPicker, .strokeColorPicker, .clearBut ton, .sharingPicker, .flexibleSpace] mainBar.principalItemIdentifier = .photoPicker return mainBar }