GenericJam

GenericJam

Mob 0.9.26 has been released.

Added

  • Mob.Keyboard.dismiss/1 — take the on-screen keyboard down from the
    BEAM.
    A screen had no way to dismiss the keyboard from its own handler —
    a Save button, a tap on blank space, a committed value — short of removing
    the field from the tree. The built-in exits are the return key (which the
    decimal and number keyboards don’t have, so on_submit never fires for
    them), another field taking focus, and the iOS keyboard-toolbar “Done”.
    New dismiss_keyboard/0 NIF. iOS resigns the first responder in any
    visible window and returns once the main thread has done it (IO_BOUND,
    2 s bound), so a value: assigned in the same handler reaches the field.
    Android calls MobBridge.dismissKeyboard() from the matching mob_new
    template (GenericJam/mob_new#113), which hides the soft keyboard and clears
    focus in the focused field’s own window, a sheet’s included. On a bridge
    without it the NIF returns {:error, :not_loaded} and dismiss/1 is a
    no-op.
    dismiss/1 returns the socket and is a no-op on the host. Guide:
    guides/device_capabilities.md → Keyboard. Decision:
    decisions/2026-09-24-keyboard-dismiss-is-a-device-api.md.

Changed

  • Zig pin is 0.17.0. Replaces 0.17.0-dev.269+ebff43698. That nightly
    existed because 0.15.x could not link on the macOS 26 SDK; 0.17.0 is the
    stable that has the fix (build_system_migration.md). mix mob.doctor
    still requires an exact zig version match. Companion to mob_dev and
    mob_new, which move with it.

Fixed

  • Android Zig sources compile on Zig 0.17.0, and still on the old
    nightly.
    std.fmt.bufPrintZ was removed in 0.17.0, and its replacement
    std.mem.printSentinel is missing in 0.17.0-dev.269, so the post-mortem
    marker paths in mob_nif.zig format through a local printZ on
    std.fmt.bufPrint, which both have. An app that updates mob but keeps
    mob_dev 0.7.30 (which pins the nightly) still builds for Android.
    Allocator.dupeZ was removed, so mob_stored_queue.zig’s tests use
    dupeSentinel. CI now sets up the pinned Zig from .tool-versions,
    compiles mob_nif.zig for Android and runs every Android Zig test file.
  • iOS sheets take their identity from :id (115). A sheet’s
    presentation state was tied to its place in the tree, and a container’s
    child keying (MOB-127) does not reach every sheet, such as one that is the
    screen’s root. There, after the user swiped a sheet down, a sheet with a
    different :id in its place never presented, and replacing an open sheet
    kept the old presentation and lost the new sheet’s on_dismiss. An :id
    is now the sheet’s identity on iOS as on Android (mob_new #43); without
    one, identity stays positional. The replaced sheet’s late on_dismiss is
    dropped. A replacement for an open sheet also presents at its own detents:
    under a keyed container it came up full height with no drag indicator.
  • A task killed from outside right after start_async/3 reports the real
    reason (MOB-500).
    Mob.Screen.Server could pass {:exit, :noproc} to
    handle_async/3 when the kill landed before the screen’s monitor reached
    the task’s runner, since Process.monitor/1 is asynchronous. The screen
    traps exits, so it now takes the reason from the runner’s link (:killed
    for Process.exit(pid, :kill)). Seen once in a few thousand runs of
    async_test.exs, next to a test-side race on the same signal ordering.
  • Android on_blur survives a re-render in the handler that took focus
    away.
    The blur was resolved generation-strictly, but focus is lost on
    the UI thread after the BEAM has already committed the handler’s new tap
    table, so it carried a stale handle and was dropped: 6 of 8 blurs after
    Mob.Keyboard.dismiss/1 plus an assign, on a Moto G Power 2021. It now
    resolves by identity (same slot, pid and tag), as change events and the
    iOS final-text blur already do.

Upgrading

  • Zig 0.17.0, with mob_dev and mob_new’s matching releases. In each
    app, set zig 0.17.0 in .tool-versions (mise use zig@0.17.0 installs
    it and edits the file; mise install zig@0.17.0 alone leaves the app on
    the nightly). iOS apps also need ios/build.zig and
    ios/build_device.zig off b.build_root, which 0.17.0 removed: in the
    Swift glob, replace b.build_root.handle.openDir( with
    std.Io.Dir.openDirAbsolute(, and add b.dependOnDirectoryContents(.{ .cwd_relative = b.fmt("{s}/ios", .{mob_dir}) }); before it (0.17.0
    caches the configure phase, so without it a new mob Swift file is missed).
    Or copy the block from a freshly generated app. mix mob.doctor flags
    both.
  • Android: Mob.Keyboard.dismiss/1 needs MobBridge.dismissKeyboard().
    New apps from the matching mob_new have it. In an existing app, copy
    dismissKeyboard(), focusedFieldHost, the InputMethodManager and
    LocalView imports, and the hostView and focusedFieldHost lines in MobTextField
    from a freshly generated MobBridge.kt. Without the method the call leaves
    the keyboard up.

Mob Info

Classification: Hybrid Mobile Framework
Description: BEAM-on-device mobile framework for Elixir. OTP runs inside your iOS and Android apps — embedded directly in the app bundle, no server required. Screens are GenServers; the UI is rendered by Compose and SwiftUI via a thin NIF.
Forum/tag: mob

Click here to view Mob’s main announcement thread.

Where Next? Top

Trending in News & Updates Top

mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New
bartblast
Hologram UI is in the works - the official component library for Hologram - and the waiting list is now open. A common reaction when I m...
New
bartblast
This thread is for updates on the Hologram website (docs, new pages, roadmap, feature status, etc.). You can watch this thread to get no...
New
uzaydurdu
Hey Elixir folks, I’ve been working on Xenia 0.2.0, and it’s nearly ready. This release focuses on performance, easier integration, and...
New
rodloboz
Hi all, I’ve just released Sake 0.5.0, and I want to explain better what it’s for, because I think many Phoenix apps can use it now. Wh...
New
Potions
I’m working to make Potions the easiest way to deploy Elixir applications, and the next step in that journey is live: you can now bring y...
New
saleyn
TypedStruct 0.6.2: Added Ecto Integration, Default Plugins, and Enhanced Struct Features I wanted to share some exciting updates to Typed...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews