Skip to content

Image transition requires indicator #115

Closed
@yonaskolb

Description

@yonaskolb

It seems image loaded transitions require an indicator to be set if even if one isn't required

Animation works:

WebImage(url: url)
    .renderingMode(.original)
    .resizable()
    .placeholder {
        Asset.avatar.image
        .resizable()
        .renderingMode(.original)
    }
    .indicator(Indicator { _, _ in EmptyView()}) // or .indicator(.activity)
    .animation(.easeInOut(duration: 0.2))
    .transition(.fade)

No animations occur:

WebImage(url: url)
    .renderingMode(.original)
    .resizable()
    .placeholder {
        Asset.avatar.image
        .resizable()
        .renderingMode(.original)
    }
    .animation(.easeInOut(duration: 0.2))
    .transition(.fade)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions