Skip to content

Commit 637c8eb

Browse files
Silence linter warnings (sindresorhus#92)
1 parent 8bd4c0f commit 637c8eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Example/AccountsScreen.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Preferences
44
/**
55
Function wrapping SwiftUI into `SettingsPane`, which is mimicking view controller's default construction syntax.
66
*/
7-
let AccountsSettingsViewController: () -> SettingsPane = { // swiftlint:disable:this identifier_name
7+
let AccountsSettingsViewController: () -> SettingsPane = {
88
/**
99
Wrap your custom view into `Settings.Pane`, while providing necessary toolbar info.
1010
*/

Example/Preferences.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
OBJ_12 /* Products */,
104104
);
105105
sourceTree = "<group>";
106+
usesTabs = 1;
106107
};
107108
/* End PBXGroup section */
108109

Sources/Preferences/SettingsTabViewController.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ final class SettingsTabViewController: NSViewController, SettingsStyleController
154154
completionHandler completion: (() -> Void)? = nil
155155
) {
156156
let isAnimated = options
157-
.intersection([
157+
.isDisjoint(with: [
158158
.crossfade,
159159
.slideUp,
160160
.slideDown,
@@ -163,7 +163,6 @@ final class SettingsTabViewController: NSViewController, SettingsStyleController
163163
.slideLeft,
164164
.slideRight
165165
])
166-
.isEmpty == false
167166

168167
if isAnimated {
169168
NSAnimationContext.runAnimationGroup({ context in

0 commit comments

Comments
 (0)