3 ms·
> while the Swift example hosts an entire modal list with embedded picture components and text (while handling fluid scrolling, right-to-left langs, dark mode t
by stabbles 7y ago
> while the Swift example hosts an entire modal list with embedded picture components and text (while handling fluid scrolling, right-to-left langs, dark mode theming, etc all implicitly)
I think you might check out more of QML / QtQuick 2 before drawing any conclusions.
import QtQuick 2.12
import QtQuick.Layouts 1.12
ListView {
model: Model.items
delegate: RowLayout {
Image { source: image }
Column {
Text { text: title }
Text {
text: subtitle
color: "gray"
}
}
}
}
This should be more or less the same. Fluid scrolling is backed by the underlying Flickable [1]. RTL support is available an can be changed in runtime [2]. Themes / colors can be changed in runtime as well [3].
Lastly, it runs on Windows, Linux and Android as well as OSX and iOS.
[1] https://doc.qt.io/qt-5/qml-qtquick-flickable.html https://doc.qt.io/qt-5/qml-qtquick-flickable.html
[2] https://doc.qt.io/qt-5/qtquick-positioning-righttoleft.html https://doc.qt.io/qt-5/qtquick-positioning-righttoleft.html
[3] https://doc.qt.io/qt-5/qtquickcontrols2-styles.html https://doc.qt.io/qt-5/qtquickcontrols2-styles.html