Skip to content

Commit

Permalink
Merge pull request DroidKaigi#664 from fummicc1/ios_add_cornerRadius_…
Browse files Browse the repository at this point in the history
…on_SessionPageViewController

[iOS] make top-left cornerRadius on SessionPageViewController
  • Loading branch information
ry-itto authored Jan 30, 2020
2 parents 3220b66 + f98952b commit 2bedc70
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ final class SessionPageViewController: UIPageViewController {

override func viewDidLoad() {
super.viewDidLoad()

view.layer.masksToBounds = true
view.layer.maskedCorners = [.layerMinXMinYCorner]
view.layer.cornerRadius = 24

sessionViewControllers = [
SessionViewController(viewModel: viewModel, sessionViewType: .day1),
SessionViewController(viewModel: viewModel, sessionViewType: .day2),
Expand Down

0 comments on commit 2bedc70

Please sign in to comment.