Native SwiftUI client for rendering Mokelay page DSL on iOS.
- Start
mokelay-serveronhttp://127.0.0.1:8787. - Open
MokelayIOS.xcodeprojin Xcode. - Run the
MokelayIOSscheme on an iOS Simulator.
The app starts with PageScreen(uuid: "index"), which calls:
http://127.0.0.1:8787/api/mokelay/read_page_by_uuid?uuid=index
MokelayPageAPIfetches pages by uuid.MokelayPage,MokelayBlock, andJSONValuedecode the page DSL.PageRendererrenders the block list.BlockRegistrymaps eachblock.typeto a native SwiftUI renderer.paragraphis implemented first.- Unknown blocks use
UnsupportedBlockRenderer, so new web blocks can be added incrementally without breaking the page.
Future iOS block renderers should mirror the web block names from mokelay-editor/src/blocks, for example MHeading, MRichText, MForm, MInput, and MPage.