diff --git a/src/skia/TextBlob.cpp b/src/skia/TextBlob.cpp index 8ff1fa70..8994b642 100644 --- a/src/skia/TextBlob.cpp +++ b/src/skia/TextBlob.cpp @@ -65,6 +65,10 @@ py::class_(iter, "Run") iter .def(py::init()) + .def("__iter__", + [] (SkTextBlob::Iter& it) { + return it; + }) .def("__next__", [] (SkTextBlob::Iter& it) { SkTextBlob::Iter::Run run;