Size
public enum Size
extension Banner.Size: CaseIterable
Enum representing the available sizes that a banner can be created with.
-
A phone sized banner: 320x50.
Declaration
Swift
case phone -
A tablet sized banner: 728x90.
Declaration
Swift
case tablet -
Size for IAB Medium Rectangle banners
Declaration
Swift
case mrec -
Gets the size of the banner as a CGSize object
Declaration
Swift
public func get() -> CGSizeReturn Value
A CGSize representation of the size.
-
Checks if the provided size fits inside the enum’s size.
Declaration
Swift
public func checkValidSize(_ size: CGSize) -> BoolParameters
sizesize to be checked.
Return Value
true if the size fits, false otherwise.