Skip to content

[CM-1317] add rendering mode support #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 11, 2023

Conversation

SahilSainiYML
Copy link
Contributor

Introduction

Expanded the functionality of our system image loading protocol to include rendering mode. Now user can choose between the rendering mode to apply on the image(s).

Purpose

This will let users set the rendering mode on an entire group (enum) of images.
Fix #56

Scope

Updated ImageAsset protocol to support static var renderingMode: UIImage.RenderingMode? { get }. Made modification in loadImage.

Some swiftLint rules are updated in files.

📈 Coverage

Code

100%
Code coverage

Documentation

100%
Jazzy

… disabled rules for file

[UPDATE] add disable rule
@SahilSainiYML SahilSainiYML force-pushed the issue/CM-1317-AddReneringMode branch from 35a3773 to 786c0e4 Compare April 10, 2023 08:47
[UPDATE] added     // swiftlint:disable superfluous_disable_command
@SahilSainiYML SahilSainiYML force-pushed the issue/CM-1317-AddReneringMode branch from 205c363 to 88122bf Compare April 10, 2023 09:30
Copy link
Contributor

@mpospese mpospese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Issue is to modify SystemImage, not ImageAsset so you modified the wrong protocol. Also, see if you can simply delete the large_tuple rule to please SwiftLint.

@SahilSainiYML SahilSainiYML force-pushed the issue/CM-1317-AddReneringMode branch 2 times, most recently from b5238fb to c334375 Compare April 10, 2023 12:08
@SahilSainiYML SahilSainiYML requested a review from mpospese April 10, 2023 13:07
@SahilSainiYML SahilSainiYML force-pushed the issue/CM-1317-AddReneringMode branch 2 times, most recently from 1f75eb1 to 1556c2a Compare April 10, 2023 14:08
@SahilSainiYML SahilSainiYML requested a review from mpospese April 10, 2023 14:31
@SahilSainiYML SahilSainiYML force-pushed the issue/CM-1317-AddReneringMode branch from c0d490e to 85bbd08 Compare April 10, 2023 16:05
@SahilSainiYML SahilSainiYML merged commit ec33ac3 into main Apr 11, 2023
@SahilSainiYML SahilSainiYML deleted the issue/CM-1317-AddReneringMode branch April 11, 2023 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add optional rendering mode to SystemImage
2 participants