Type Aliases
The following type aliases are available globally.
-
Cross-platform edge insets type for EFQRCode.
EFEdgeInsets
is a type alias that provides a unified interface for edge insets across different Apple platforms. It automatically maps to the appropriate platform-specific edge insets type.## Platform Mapping
- macOS: Maps to
NSEdgeInsets
- iOS/tvOS: Maps to
UIEdgeInsets
- watchOS: Maps to
UIEdgeInsets
## Usage
// Create edge insets for padding let insets = EFEdgeInsets(top: 10, left: 20, bottom: 10, right: 20) // Use with QR code generation let image = try generator.toImage(width: 200, insets: insets)
## Properties
top
: The inset from the top edgeleft
: The inset from the left edgebottom
: The inset from the bottom edgeright
: The inset from the right edge
- macOS: Maps to
-
Cross-platform edge insets type for EFQRCode.
EFEdgeInsets
is a type alias that provides a unified interface for edge insets across different Apple platforms. It automatically maps to the appropriate platform-specific edge insets type.## Platform Mapping
- macOS: Maps to
NSEdgeInsets
- iOS/tvOS: Maps to
UIEdgeInsets
- watchOS: Maps to
UIEdgeInsets
## Usage
// Create edge insets for padding let insets = EFEdgeInsets(top: 10, left: 20, bottom: 10, right: 20) // Use with QR code generation let image = try generator.toImage(width: 200, insets: insets)
## Properties
top
: The inset from the top edgeleft
: The inset from the left edgebottom
: The inset from the bottom edgeright
: The inset from the right edge
Declaration
Swift
public typealias EFEdgeInsets = UIEdgeInsets
- macOS: Maps to