Skip to content
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
16 changes: 16 additions & 0 deletions PopupDialog/Classes/PopupDialogContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ final public class PopupDialogContainerView: UIView {
}
}

/*
Having `cornerRadius` variable will create ambiguity with developers having it as a UIView extension.
In order to help them out, we can have functions doing the same functionality.
*/
/// Set the corner radius of the popup view
@objc public dynamic func setupCornerRadius(_ radius: Float) {
let radius = CGFloat(radius)
shadowContainer.layer.cornerRadius = radius
container.layer.cornerRadius = radius
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

/// Get the corner radius of the popup view
@objc public dynamic func getCornerRadius() -> Float {
return Float(shadowContainer.layer.cornerRadius)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

// MARK: Shadow related

/// Enable / disable shadow rendering of the container
Expand Down