Skip to content

Commit

Permalink
Merge branch 'master' into feature/uiblureffect_variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomohiro Mitsumune committed Mar 17, 2016
2 parents f8e935c + 0ef25d0 commit a730a55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion HUDKit/Classes/Progress/HUDProgressViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ public class HUDProgressViewController: UIViewController {
self.status = status
self.visualEffect = visualEffect

preferredContentSize = CGSizeMake(100.0, 100.0)
if let customView = customView {
let insets = UIEdgeInsets(top: -30, left: -30, bottom: -30, right: -30)
preferredContentSize = UIEdgeInsetsInsetRect(customView.bounds, insets).size
} else {
preferredContentSize = CGSizeMake(100.0, 100.0)
}

modalPresentationStyle = .Custom
transitioningDelegate = self
Expand Down

0 comments on commit a730a55

Please sign in to comment.