Skip to content

Commit 3d6eb92

Browse files
change spacing to match maui
1 parent dbb4053 commit 3d6eb92

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Core/src/ImageSources/iOS/ImageSourceExtensions.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,22 +147,22 @@ internal static UIImage GetPlatformImage(this CGImageSource cgImageSource, int s
147147
if (cgimage is null)
148148
throw new InvalidOperationException("Unable to create CGImage from CGImageSource.");
149149

150-
image = new UIImage(cgimage, scale, ToUIImageOrientation (cgImageSource));
150+
image = new UIImage(cgimage, scale, ToUIImageOrientation(cgImageSource));
151151
}
152152

153153
return image;
154154
}
155155

156-
static UIImageOrientation ToUIImageOrientation (CGImageSource cgImageSource)
156+
static UIImageOrientation ToUIImageOrientation(CGImageSource cgImageSource)
157157
{
158-
var props = cgImageSource.GetProperties (0);
158+
var props = cgImageSource.GetProperties(0);
159159
if (props is null || props.Orientation is null)
160160
return UIImageOrientation.Up;
161161

162-
return ToUIImageOrientation (props.Orientation.Value);
162+
return ToUIImageOrientation(props.Orientation.Value);
163163
}
164164

165-
static UIImageOrientation ToUIImageOrientation (CIImageOrientation cgOrient) => cgOrient switch {
165+
static UIImageOrientation ToUIImageOrientation(CIImageOrientation cgOrient) => cgOrient switch {
166166
CIImageOrientation.TopLeft => UIImageOrientation.Up,
167167
CIImageOrientation.TopRight => UIImageOrientation.UpMirrored,
168168
CIImageOrientation.BottomRight => UIImageOrientation.Down,
@@ -171,8 +171,7 @@ static UIImageOrientation ToUIImageOrientation (CGImageSource cgImageSource)
171171
CIImageOrientation.RightTop => UIImageOrientation.Right,
172172
CIImageOrientation.RightBottom => UIImageOrientation.RightMirrored,
173173
CIImageOrientation.LeftBottom => UIImageOrientation.Left,
174-
_ => throw new ArgumentOutOfRangeException (nameof (cgOrient)),
174+
_ => throw new ArgumentOutOfRangeException(nameof (cgOrient)),
175175
};
176-
177176
}
178177
}

0 commit comments

Comments
 (0)