Skip to content

Commit

Permalink
Infer generic type of container views
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisakers committed Oct 5, 2017
1 parent eb9b768 commit 73f5130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Example/Sources/PetSelectorBulletinPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class PetSelectorBulletinPage: BulletinItem {
button.accessibilityTraits &= ~UIAccessibilityTraitSelected
}

let buttonContainer = ContainerView<UIButton>(button)
let buttonContainer = ContainerView(button)
buttonContainer.layer.cornerRadius = 12
buttonContainer.layer.borderWidth = 2

Expand Down
2 changes: 1 addition & 1 deletion Sources/BulletinInterfaceFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public class BulletinInterfaceFactory {
actionButton.layer.cornerRadius = 12
actionButton.clipsToBounds = true

let actionContainer = ContainerView<HighlightButton>(actionButton)
let actionContainer = ContainerView(actionButton)
actionContainer.heightAnchor.constraint(equalToConstant: 55).isActive = true

return actionContainer
Expand Down

0 comments on commit 73f5130

Please sign in to comment.