Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

[CM-1317] add rendering mode support - #60

Merged
SahilSainiYML merged 8 commits into
mainfrom
issue/CM-1317-AddReneringMode
Apr 11, 2023
Merged

[CM-1317] add rendering mode support#60
SahilSainiYML merged 8 commits into
mainfrom
issue/CM-1317-AddReneringMode

Conversation

@SahilSainiYML

Copy link
Copy Markdown
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

@mpospese mpospese left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread Sources/YCoreUI/Extensions/UIKit/UIColor+rgbComponents.swift Outdated
Comment thread Sources/YCoreUI/Extensions/UIKit/UIColor+rgbComponents.swift Outdated
Comment thread Tests/YCoreUITests/Extensions/Foundation/CGFloat+roundedTests.swift Outdated
@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
Comment thread Sources/YCoreUI/Protocols/ImageAsset.swift Outdated
Comment thread Sources/YCoreUI/Protocols/SystemImage.swift Outdated
Comment thread Sources/YCoreUI/Protocols/SystemImage.swift Outdated
Comment thread Tests/YCoreUITests/Extensions/UIKit/UIView+constrainEdgesTests.swift Outdated
Comment thread Tests/YCoreUITests/Protocols/ImageAssetTests.swift Outdated
Comment thread Tests/YCoreUITests/Protocols/SystemImageTests.swift Outdated
Comment thread Tests/YCoreUITests/Protocols/SystemImageTests.swift Outdated
@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
Comment thread Tests/YCoreUITests/Protocols/SystemImageTests.swift Outdated
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add optional rendering mode to SystemImage

2 participants