Skip to content

Commit 69909c3

Browse files
authored
fix: Add uint handling to Wrap in AdditionalExtensions for iOS (#48)
When the `Wrap` method is called on a `uint` value, the mapper did not have handling for the `uint` type and would fall through to the NotSupportedException at the end of the method. This error occurred when using the `LayerPosition.At` builder method, which accepts a `uint` as a layer position.
1 parent ed5bd9c commit 69909c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libs/Mapbox.Maui/Platforms/iOS/AdditionalExtensions.cs

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ internal static NSObject Wrap(this object xvalue)
194194
{
195195
bool value => NSNumber.FromBoolean(value),
196196
int value => NSNumber.FromLong(value),
197+
uint value => NSNumber.FromUInt32(value),
197198
long value => NSNumber.FromLong((nint)value),
198199
float value => NSNumber.FromDouble(value),
199200
double value => NSNumber.FromDouble(value),

0 commit comments

Comments
 (0)