Skip to content

Commit

Permalink
Merge pull request #48 from marty-suzuki/develop
Browse files Browse the repository at this point in the history
Fix #47
  • Loading branch information
marty-suzuki authored Feb 16, 2019
2 parents 39ed64d + 0bba7b2 commit 94719e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MisterFusion.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = "MisterFusion"

s.version = "4.0.0"
s.version = "4.0.1"

s.summary = "MisterFusion makes more easier to use AutoLayout in Swift & Objective-C code."

Expand Down
2 changes: 1 addition & 1 deletion MisterFusion/MisterFusion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ extension View {
let item: _LayoutObject = misterFusion.item ?? self

#if os(iOS) || os(tvOS)
let traitCollection = UIApplication.shared.keyWindow?.traitCollection
let traitCollection = window?.traitCollection
if let horizontalSizeClass = misterFusion.horizontalSizeClass
, horizontalSizeClass != traitCollection?.horizontalSizeClass {
return nil
Expand Down

0 comments on commit 94719e9

Please sign in to comment.