[swift-users] What is the intended response to Array change notification for dependents?
Rien
Rien at Balancingrock.nl
Tue Mar 7 01:36:03 CST 2017
I don’t think there is a single answer to this. It is all highly dependant on what the application does with the info.
Sometimes it will indeed be necessary to rebuild the entire gui, other times it is enough to simply insert a new table cell.
Regards,
Rien
Site: http://balancingrock.nl
Blog: http://swiftrien.blogspot.com
Github: http://github.com/Balancingrock
Project: http://swiftfire.nl
> On 07 Mar 2017, at 03:56, Edward Connell via swift-users <swift-users at swift.org> wrote:
>
> I would like to have an Array implementation where I get more information than just "the whole thing changed".
> As a value type I get it, but lets say it's a list of 500 image info structs and it's bound to UI. You change one item, now the whole array changes and you have to rebuild the entire visual tree right? Rebuilding the state of dependent objects can be really expensive, not just UI things.
>
> Is there some efficient strategy that the library designers intended for this situation?
> It seems like a really common and obvious scenario.
> Insights and suggestions are appreciated.
>
> Thanks, Ed
>
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
More information about the swift-users
mailing list