#pragma once // Spec: INV-posts 2.3, 5.2 (.transition(.opacity) with .smooth(duration: 0.28)). Fades its child in over // PostsTiming::kSmoothSeconds from its first draw. Give it a key (View::id) that changes when the content is shown anew. // DIFF: only the appearance fades; removal is immediate and the height change is not animated. #include "ui/Modifiers.hpp" namespace dp { class FadeInView : public ui::WrapperView { public: explicit FadeInView(ui::ViewPtr child) : WrapperView(std::move(child)) {} void draw(ui::Canvas& c) override; }; ui::ViewPtr FadeIn(ui::ViewPtr content, const std::string& key); } // namespace dp