Skip to content

Commit

Permalink
Make ImageSize properties writable
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jan 14, 2025
1 parent 57714c7 commit 6fdb460
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Modules/Sources/AsyncImageKit/ImageRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ public struct ImageRequestOptions: Hashable, Sendable {

/// Image size in **pixels**.
public struct ImageSize: Hashable, Sendable {
public let width: Int
public let height: Int
/// Width in **pixels**.
public var width: Int
/// Height in **pixels**.
public var height: Int

/// Initializes the struct with given size in **pixels**.
public init(width: Int, height: Int) {
Expand Down

0 comments on commit 6fdb460

Please sign in to comment.