Skip to content

Commit 31e0e05

Browse files
authored
Merge pull request #260 from madsmtm/geometry-rework
Rework Foundation geometry types
2 parents 8cdc355 + e5ead9e commit 31e0e05

File tree

3 files changed

+208
-123
lines changed

3 files changed

+208
-123
lines changed

objc2/CHANGELOG_FOUNDATION.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1717
* Added `NSTimeInterval`.
1818
* Added `NSString::len_utf16` and `NSAttributedString::len_utf16`.
1919
* Added `NSString::concat` and `NSString::join_path`.
20+
* Added `CGSize`, `CGPoint` and `CGRect` (just aliases to equivalent
21+
`NS`-types, but helps readability).
22+
23+
### Changed
24+
* **BREAKING**: `NSSize::new` no longer requires it's arguments to be
25+
non-negative. Use `NSSize::abs` or `NSRect::standardize` if the API you're
26+
binding to requires a non-negative size.
2027

2128

2229
## objc2 0.3.0-beta.2 - 2022-08-28

0 commit comments

Comments
 (0)