Skip to content
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

Issue 305 - Create Dark and Tinted Icons for the App #319

Merged
merged 7 commits into from
Oct 8, 2024

Conversation

rajhraval
Copy link
Contributor

What it Does

How I Tested

  • Run the app after following the instructions in Contributing.md
  • Go To Settings -> Change App Icon -> Pick an app icon
  • Close the App -> Tap and Hold on the Home Screen -> Click on Edit and then on Customise
  • Select Light To Test The Light Mode App Icon Variant
  • Select Dark To Test the Dark Mode App Icon Variant
  • Select Tinted to Test the Tinted App Icon Variant

Notes

  • In the Change App Icon View, the icons are not visible, this is not correct as user doesn't how the app icon looks like before the user applies it.

Screenshot

DemoAppICon.mov

Copy link
Owner

@mikaelacaron mikaelacaron left a comment

Choose a reason for hiding this comment

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

I tried to tap on the red car, still in light mode, and it failed with
Updating icon to Optional("AppIcon-car-red") failed.
actually they're all failing right now

Updating icon to Optional("AppIcon-car-dark") failed.
Updating icon to Optional("AppIcon-car-red") failed.
Updating icon to Optional("AppIcon-car-yellow") failed.
Updating icon to Optional("AppIcon-car-black") failed.
Updating icon to Optional("AppIcon-car-orange") failed.
Updating icon to Optional("AppIcon-car-yellow") failed.
Updating icon to Optional("AppIcon-car-black") failed.
Updating icon to Optional("AppIcon-car-orange") failed.

AppIcon-Car-Dark "dark version" of this doesn't have an icon, should it?

CODE_SIGN_ENTITLEMENTS = "Basic-Car-Maintenance/Basic_Car_Maintenance.entitlements";
CODE_SIGN_STYLE = Automatic;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
DEVELOPMENT_TEAM = SJ64B32FPH;
Copy link
Owner

Choose a reason for hiding this comment

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

Don't commit this! look back at the contributing guidelines with the xccconfig file steps

it looks like you changed the development team in the project, which you shouldn't do

Copy link
Owner

Choose a reason for hiding this comment

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

This still needs to be resolve dplease!

Copy link
Owner

Choose a reason for hiding this comment

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

Do we actually need tinted versions of all the colored cars? cause in reality they'll all be the same? so can we just use one asset for the tinted color versions?

Copy link
Contributor Author

@rajhraval rajhraval Oct 4, 2024

Choose a reason for hiding this comment

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

In reality they are the same, but if I remove the tinted icons, it will kind of tint the light/dark variant which isn't a proper asset to apply tint.

Copy link
Owner

Choose a reason for hiding this comment

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

Nevermind! Kinda irrelevant
I meant do we need multiple of the same asset for all the tinted icons? Or can we use the same asset for all of the colors? seeing Figam, it looks like it's the same, but I couldn't tell just looking at the git diff

(we can resolve this thread)

@mikaelacaron
Copy link
Owner

mikaelacaron commented Oct 4, 2024

Be sure to merge your changes from dev into your branch!
Once you fix everything, please click the re-review button

Re-review button

@rajhraval
Copy link
Contributor Author

I tried to tap on the red car, still in light mode, and it failed with Updating icon to Optional("AppIcon-car-red") failed. actually they're all failing right now

Updating icon to Optional("AppIcon-car-dark") failed.
Updating icon to Optional("AppIcon-car-red") failed.
Updating icon to Optional("AppIcon-car-yellow") failed.
Updating icon to Optional("AppIcon-car-black") failed.
Updating icon to Optional("AppIcon-car-orange") failed.
Updating icon to Optional("AppIcon-car-yellow") failed.
Updating icon to Optional("AppIcon-car-black") failed.
Updating icon to Optional("AppIcon-car-orange") failed.

AppIcon-Car-Dark "dark version" of this doesn't have an icon, should it?

This is weird, it's working fine for me while running simulator.
For AppIcon-Car-Dark, it's already dark should it doesn't require, actually I feel it's redundant.
Because AppIcon-Car-Black's dark variant is the AppIcon-Car-Dark icon itself.

@rajhraval rajhraval requested a review from mikaelacaron October 4, 2024 15:32
@mikaelacaron
Copy link
Owner

For AppIcon-Car-Dark, it's already dark should it doesn't require, actually I feel it's redundant.

I agree, let's just remove it now, cause that was made pre-iOS 18

Do the icons show on the ChooseAppIconView for you? They still weren't showing for me

The errors can also mean the files aren't properly added to the project? And target membership?

@rajhraval
Copy link
Contributor Author

I agree, let's just remove it now, cause that was made pre-iOS 18

Cool will remove the AppIconDark

Do the icons show on the ChooseAppIconView for you? They still weren't showing for me

No they don't because there are no images present for those icons, we need to have separate images created for them so UIImage(named: ) returns value currently they return a UIImage() (Empty Value)

The errors can also mean the files aren't properly added to the project? And target membership?
You are running in Simulator correct and iOS 18 right?, the files are added and target is also just fine.

image

@mikaelacaron
Copy link
Owner

comment whenever that is done please! cause you can't click re-review again haha

@rajhraval
Copy link
Contributor Author

Done @mikaelacaron, regarding the errors, I still can't reproduce them.

Copy link
Owner

@mikaelacaron mikaelacaron left a comment

Choose a reason for hiding this comment

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

I figured out why there's an error, see comments below! also for me the icons aren't showing on the ChooseAppIconView, but if you are seeing them, let me know.
don't fix it, we can make a new issue for this

CODE_SIGN_ENTITLEMENTS = "Basic-Car-Maintenance/Basic_Car_Maintenance.entitlements";
CODE_SIGN_STYLE = Automatic;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
DEVELOPMENT_TEAM = SJ64B32FPH;
Copy link
Owner

Choose a reason for hiding this comment

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

This still needs to be resolve dplease!

@rajhraval
Copy link
Contributor Author

All done.

@rajhraval rajhraval requested a review from mikaelacaron October 7, 2024 03:23
@rajhraval
Copy link
Contributor Author

rajhraval commented Oct 8, 2024

Any update @mikaelacaron ?

Copy link
Owner

@mikaelacaron mikaelacaron left a comment

Choose a reason for hiding this comment

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

Great work!! the development team was removed and not properly set (see the contributing.md file about how to set this up properly. I'll fix it manually for this PR

also note I have multiple days to review PRs, there's many things to mange, and I may not get to every PR within 24 hours

Comment on lines 965 to 970
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;

This should be fully removed, as opposed to be set to empty

Comment on lines 1008 to 1011
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
DEVELOPMENT_ASSET_PATHS = "\"Basic-Car-Maintenance/Preview Content\"";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;

removed

It was set to none, but it shouldn't be
@mikaelacaron mikaelacaron merged commit 2ba41ae into mikaelacaron:dev Oct 8, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE - Tinted App Icons for iOS 18
2 participants