Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
Structure

EdgeInsets

The Compose SwiftUI form of SwiftUI's EdgeInsets.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
class EdgeInsets

Overview

This is the Kotlin form of SwiftUI EdgeInsets: SwiftUI documentation. In Swift it reads:

@frozen struct EdgeInsets

Topics

Initializers

constructor(top: Double, leading: Double, bottom: Double, trailing: Double)
SwiftUI EdgeInsets.init(top:leading:bottom:trailing:)
constructor()
SwiftUI EdgeInsets.init()

Methods

fun inset(corners: RectangleCornerInsets, edges: Edge.Set = Edge.Set.all): EdgeInsets
SwiftUI EdgeInsets.inset(by:edges:) · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+

Types

class EdgeInsets
SwiftUI EdgeInsets