icerockdev / moko-widgets

Multiplatform UI DSL with screen management in common code for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
388 stars 32 forks source link

ListWidget on iOS dont work #268

Closed Diy2210 closed 4 years ago

Diy2210 commented 4 years ago

Hi, I generate iOS app and ListWidget dont show items. In Android all works I dond understand why.

My ListWidget: Снимок экрана 2020-07-23 в 14 42 42

TableUnits: Снимок экрана 2020-07-23 в 14 42 50

UnitItem class: Снимок экрана 2020-07-23 в 14 43 34

Value in Xcode: Снимок экрана 2020-07-23 в 14 44 29

Result iOS: Simulator Screen Shot - iPhone SE (2nd generation) - 2020-07-23 at 14 44 33

Android: Screenshot_1595504680

And round button on iOS is strange =)

Dorofeev commented 4 years ago

Here you have really strange constraints. It should be something like:

list topToTop root offset 8
list leftToLeft root offset 8

Because now your UITableView is located to the right of visible area of screen

Dorofeev commented 4 years ago

And about button, cornerRadius should be half of button height/width

Diy2210 commented 4 years ago

Oh yeah I fix it, TNX! Left to fix item size and will be complete. Simulator Screen Shot - iPhone SE (2nd generation) - 2020-07-23 at 17 38 59