Custom ListStyle types

Is creating a custom ListStyle a public affair or private one between Apple and their developers?

Replies

a public affair or private one between Apple and their developers

Do you mean create a struct conforming to the ListStyle protocol?

It seems you can't :

https://www.reddit.com/r/iOSProgramming/comments/jlz5t4/how_to_create_custom_liststyle_in_swiftui/

But you can of course create a List Style in your app (an example):

https://www.educative.io/edpresso/how-to-create-a-custom-list-in-swiftui

  • I'm aware of creating custom list. What I am looking to do is implement and adjust the behaviours of the list view items when items are selected. For example when an item is selected in macOS, then set the selected cell background color etc., keep the text font colours as is etc. when selected,

Add a Comment