Skip to content

Please add extended support for SF Symbol configuration #489

Description

@funnel20

I'm very pleased that InAppSettingsKit version 3.6 now supports SF Symbols via systemImageNamed:.

One question though, as this opens the door to more customisation. In our apps we use even more native power with systemImageNamed:withConfiguration:.
For example to apply palette colouring on a SF Symbol:
Screenshot 2024-02-16 at 10 23 29

// Define image name and configuration:
NSString *name = @"cloud.sun";
UIImageConfiguration *config = [UIImageSymbolConfiguration configurationWithPaletteColors:@[
    [UIColor systemTealColor],      // cloud
    [UIColor systemYellowColor]     // sun
]];

// Create image:
UIImage *image = [UIImage systemImageNamed:name
                         withConfiguration:config];

Since you already use IASKCellImage as name, would it be possible to extend InAppSettingsKit with something like a IASKCellImageConfiguration, which refers to the name of Class variable of the parent ViewController (e.g. config in this example)?

The good part of systemImageNamed:withConfiguration: is that even if config is nil, it will ignore the configuration and just acts as systemImageNamed:.

Thank you for considering this improvement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions