Skip to content

Commit

Permalink
💫 Update: RNIComputableSize
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 28, 2023
1 parent 501190c commit ae02c09
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ public struct RNIComputableSize {

func computeOffsets(withSize size: CGSize) -> CGSize {
let offsetWidth =
self.offsetWidth?.compute(withValue: size.width) ?? 0;
self.offsetWidth?.compute(withValue: size.width);

let offsetHeight =
self.offsetHeight?.compute(withValue: size.height) ?? 0;
self.offsetHeight?.compute(withValue: size.height);

return CGSize(
width: size.width + offsetWidth,
height: size.height + offsetHeight
width: offsetWidth ?? size.width,
height: offsetHeight ?? size.height
);
};
};
Expand Down

0 comments on commit ae02c09

Please sign in to comment.