You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
This is certainly a good idea. I suggest adding a symbolImageConfiguration property to IASKAppSettingsViewController. That property would have to be copied to all child view controllers (similar to how the delegate is assigned to child VCs). Is probably easier to use, especially from Swift code.
Would you be so kind to contribute a pull request? ;-)
@futuretap I was hoping to apply multiple different Symbol Configurations per ViewController, as the layout might request one configuration per image.
Consider for example the native iOS Settings app, it consists of a wide range of coloured icons:
I see. To achieve this example, you’d need a separate class for each background color. Doesn't really scale well, too.
If I were you, I'd implement the -settingsViewController:cellForSpecifier: delegate callback and set
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:
Since you already use
IASKCellImage
asname
, would it be possible to extend InAppSettingsKit with something like aIASKCellImageConfiguration
, 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 ifconfig
isnil
, it will ignore the configuration and just acts assystemImageNamed:
.Thank you for considering this improvement.
The text was updated successfully, but these errors were encountered: