-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring reminder list to use section headers - Related to #125
This resulted in improved memory usage
- Loading branch information
1 parent
cea4a4f
commit f12aa66
Showing
4 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import SwiftUI | ||
|
||
// Workaround to present the list without the background transparency | ||
// https://stackoverflow.com/questions/60454752/swiftui-background-color-of-list-mac-os | ||
|
||
extension NSTableView { | ||
open override func viewDidMoveToWindow() { | ||
super.viewDidMoveToWindow() | ||
|
||
// Workaround to present the list without the background transparency | ||
// https://stackoverflow.com/questions/60454752/swiftui-background-color-of-list-mac-os | ||
backgroundColor = NSColor.clear | ||
enclosingScrollView?.drawsBackground = false | ||
|
||
// Removing sticky section header | ||
floatsGroupRows = false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters