Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Fix landscape shadow issue on initial launch #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ - (id)initForController:(UIViewController *)controller shadow:(BOOL)hasShadow
if (self != nil)
{
self.viewController = controller;
if (hasShadow)
{
[self setupShadow];
}
self.shadow = hasShadow;
}

Expand All @@ -64,6 +60,9 @@ - (void)layoutSubviews
{
[super layoutSubviews];
// layout controller view
if (self.shadow && !self.layer.shadowPath) {
[self setupShadow];
}
self.viewController.view.frame = self.viewController.view.bounds;
}

Expand Down Expand Up @@ -109,4 +108,4 @@ - (void)disableUserInteractionForContainedView
[self.viewController.view setUserInteractionEnabled:NO];
}

@end
@end