Skip to content

Commit

Permalink
Merge pull request #19 from zenangst/improve/macos-extensions
Browse files Browse the repository at this point in the history
Improve macOS extensions setting needsLayout
  • Loading branch information
zenangst authored May 4, 2019
2 parents 89df759 + b01eea0 commit 163e1d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Differific.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "Differific"
s.summary = "A fast and convenient diffing framework"
s.version = "0.7.1"
s.version = "0.7.2"
s.homepage = "https://github.com/zenangst/Differific"
s.license = 'MIT'
s.author = { "Christoffer Winterkvist" => "[email protected]" }
Expand Down
2 changes: 2 additions & 0 deletions Source/macOS/NSCollectionView+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public extension NSCollectionView {
}
}, completionHandler: nil)

needsLayout = true

completion?()
}

Expand Down
2 changes: 2 additions & 0 deletions Source/macOS/NSTableView+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public extension NSTableView {

animator().endUpdates()

needsLayout = true

completion?()
}

Expand Down

0 comments on commit 163e1d1

Please sign in to comment.