Overview
Kivy 2.1, released on March 10, 2022, adds Python 3.10 support and improves iOS deployment.
Main Features
Python 3.10 support
Kivy 2.1 is compatible with Python 3.10, integrating necessary fixes for language and standard library changes.
python
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(
text='Kivy 2.1 on Python 3.10',
font_size='24sp',
)
# MyApp().run()
iOS improvements
The iOS toolchain is improved with better native framework support and more reliable compilation for Apple devices.
python
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
class MobileApp(App):
def build(self):
layout = BoxLayout(padding=20, spacing=10)
for label in ['Action 1', 'Action 2', 'Action 3']:
btn = Button(text=label, font_size='18sp')
layout.add_widget(btn)
return layout
# iOS deployment: toolchain build myapp
