https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose-ios
  • a

    Anthony Martin

    04/06/2022, 3:38 PM
    👀 Any idea when this will be available?
    t
    • 2
    • 1
  • f

    Fudge

    04/09/2022, 9:56 PM
    Wow, this is a thing I always had faith
    a
    • 2
    • 1
  • m

    miguelmoreno

    04/16/2022, 9:37 AM
    https://twitter.com/joreilly/status/1514973876912070656 🙌
    🙌🏻 1
    😮 2
    🙌 3
    x
    l
    d
    • 4
    • 4
  • t

    theapache64

    04/28/2022, 2:53 PM
    I was just trying to compile the falling_balls sample, and am getting below error. Any idea? 🤔 Stacktrace inside 🧵
    j
    a
    m
    • 4
    • 9
  • t

    theapache64

    05/04/2022, 2:54 PM
    Any idea why falling_balls doesn’t have an android sample? 🤔 Is it not possible? or hard to setup? 🤔
    d
    i
    +3
    • 6
    • 11
  • l

    Landry Norris

    05/13/2022, 9:39 PM
    I have started seeing this error after applying the compose material, foundation, and runtime dependencies when I run build. I have the swift-package plugin installed, and oddly enough, I can build just fine when I use the createSwiftPackage task, but gradle build always fails.
    ld: '/var/folders/26/qt7y26117_52h2ky9hkdztyw0000gn/T/included3677059779110068378/skiko-native-bridges-ios-arm64.a(Font.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.
    d
    d
    • 3
    • 3
  • j

    John O'Reilly

    05/30/2022, 7:15 PM
    Any known issues since update to XCode 13.4? Trying to run sample I have and also JetBrains samples and getting
    An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
    Unable to boot device because we cannot determine the runtime bundle.
    d
    • 2
    • 3
  • l

    Landry Norris

    05/31/2022, 4:24 PM
    Does dev686 have a way to embed frameworks in the final app? I was looking to experiment with moving an app over to compose that uses cinterop on a framework that we embed.
    d
    • 2
    • 4
  • q

    Qing Li

    06/15/2022, 6:10 AM
    Hi! This is Qing. I am a landscape designer transitioning into UX field. Me and my other landscape designer friends are currently designing an App(based on IOS) to help streamline the site visit experience and the report automation. We have done all the user research and interviews, and we have a developer on board and another Senior UX designer on this project. Do you have spare time and interest in joining us? If so I can set up a meeting to give you more information and background about this project. Right now we don't have any revenue, so this will be a volunteer role for now... but we do see the big market potential here based on the user interview. Please do let me know if you are interested. We are looking for volunteer with Swift UI & Objective-C skills. Thank you!
    d
    • 2
    • 1
  • m

    Michael Paus

    06/15/2022, 9:04 AM
    Does anybody know how to get the experimental example “falling-balls-mpp” from https://github.com/JetBrains/compose-jb running on the iOS simulator? I only get the following error:
    Could not evaluate onlyIf predicate for task ':iosSimulatorCreateIPad'.
    > Field 'dataPathSize' is required for type with serial name 'org.jetbrains.compose.experimental.uikit.internal.DeviceData', but it was missing
    🛠️ 1
    b
    s
    d
    • 4
    • 12
  • t

    Tlaster

    06/20/2022, 1:10 PM
    It seems like using compose-ios with kotlin flow will throw an error
    kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen androidx.compose.ui.platform.FlushCoroutineDispatcher
    when
    collectAsState()
    , does anyone have the same issue?
    👀 2
    🚀 2
    x
    • 2
    • 3
  • l

    Landry Norris

    06/28/2022, 6:42 PM
    Has anyone tried using Compose for iOS in a framework? I get the error in the 🧵 when I try to build an XCFramework that contains compose code. I made sure to apply the org.jetbrains.compose plugin.
    d
    • 2
    • 6
  • h

    hfhbd

    07/11/2022, 4:47 PM
    Hey, don't know if this is Kotlin bug or feature: There is no iOS artifact, only a uikit one, so you as a consumer have to rename your target to uikit to fetch the artifact: https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/runtime/
    d
    • 2
    • 1
  • t

    Tlaster

    07/18/2022, 9:38 AM
    Does anyone use material3 in the ios project? I'm facing this issue: https://github.com/JetBrains/compose-jb/issues/2155
    d
    • 2
    • 4
  • t

    Thipok Cholsaipant

    07/21/2022, 2:49 AM
    If there's anything I could help or contribute (PR or opinion) please let me know, I'd love to see Compose for iOS released. Having tried Flutter and Dart, I'd say Compose with :kotlin-intensifies-purple:Kotlin is definitely much more enjoyable experience than Flutter with Dart.
    :compose-multiplatform: 5
    👍 9
    💯 3
    👍🏾 1
    d
    d
    m
    • 4
    • 4
  • d

    darkmoon_uk

    07/24/2022, 1:56 AM
    Issue encountered with running Compose/iOS falling balls example 🧵 👉
    d
    • 2
    • 5
  • d

    darkmoon_uk

    07/26/2022, 12:19 AM
    Is there a way to control which iOS SDK is used by
    ExperimentalUiKitApplication
    as used by the Falling Balls example? By default it is trying to use iOS SDK 15.4. I would like to try and make it use 15.5.
    d
    • 2
    • 5
  • d

    darkmoon_uk

    07/26/2022, 3:18 AM
    Has anyone managed to get deletion in a
    TextField
    working in iOS?
    t
    d
    • 3
    • 3
  • m

    Michael Paus

    07/29/2022, 11:48 AM
    Is it possible to write an iOS app with Compose where the GUI is done natively with SwiftUI but all application graphics is done via the Compose Canvas? I.e., is it possible to mix SwiftUI with Compose Canvas rendering?
    a
    d
    +3
    • 6
    • 17
  • d

    darkmoon_uk

    08/05/2022, 1:25 AM
    Anyone familiar with this issue? Performing
    linkDebugFrameworkIosArm64
    against a library module with Compose/iOS:
    e: Module "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitarm64)" has a reference to symbol androidx.compose.runtime/remember|-2215966373931868872[0]. Neither the module itself nor its dependencies contain such declaration.
    ...I've cleaned, removed all
    .gradle
    caches, checked that I'm only importing version
    1.2.0-alpha01-753
    , same result. Is there any known issue with the iOS
    saveable
    artifact?
    l
    d
    +2
    • 5
    • 19
  • l

    Landry Norris

    08/05/2022, 4:50 PM
    How will iOS support go with the 1.2 stable release of compose-jb? Will it be disabled like it was in 1.1, or will the preview still be present?
    d
    • 2
    • 1
  • l

    laith

    08/11/2022, 11:40 AM
    Is there an Official roadmap for compose ios? will it look like iOS apps ?
    d
    m
    • 3
    • 2
  • a

    andylamax

    08/13/2022, 2:00 PM
    I keep hearing people are already trying out Compose 4 Ios. How or where do I look to get my self started?
    m
    • 2
    • 2
  • s

    SrSouza

    08/19/2022, 2:32 AM
    https://touchlab.co/droidcon-nyc-ios-app-with-compose/
    a
    • 2
    • 1
  • p

    Programmistich

    08/29/2022, 7:18 AM
    Has anyone encountered similar errors when compiling a KMM compose for iOS? * If the compose function is in a file then e: java.lang.IllegalStateException: No file for (file path) * If compose is a function in a class, then Unbound public symbol IrSimpleFunctionPublicSymbolImpl: (classpath.function) Without @Composable annotations, everything works fine, maybe there is an error somewhere in the configuration setting, but I checked with different repos and in general it is no different here is the detailed error(https://gist.github.com/Programistich/010324090b2d6aa78b006cb4ac94d9d0) and repository(https://github.com/Programistich/Cross-Platform-Sandbox)
    d
    m
    • 3
    • 4
  • d

    darkmoon_uk

    08/31/2022, 11:57 AM
    Any present/future pathway to embedding a
    UIView
    or
    CALayer
    within Compose/iOS ❔ Specifically; I'm interested in having a GLSL Shaded surface within my UI, and I imagine the path of least resistance would be via native view embedding. I've seen this is possible in both Android and Compose/Desktop... being able to do this in iOS would complete the set for our App :compose-multiplatform:
    l
    d
    • 3
    • 4
  • y

    Yevhen Tienkaiev

    09/01/2022, 1:05 PM
    Hello, how to handle translation like in android trough
    R
    ? Example:
    R.string.button_test
    l
    • 2
    • 3
  • y

    Yevhen Tienkaiev

    09/01/2022, 1:14 PM
    I know it's too earlier, but did anyone tried with compose IOS use mapbox? How it's done?
  • s

    SrSouza

    09/01/2022, 11:14 PM
    https://twitter.com/kpgalligan/status/1563173725041991680
  • k

    KamilH

    09/02/2022, 5:29 AM
    https://github.com/cashapp/redwood
    s
    l
    b
    • 4
    • 5
Powered by Linen
Title
k

KamilH

09/02/2022, 5:29 AM
https://github.com/cashapp/redwood
s

spierce7

09/02/2022, 7:31 AM
I just read the readme, and still don’t really understand what it’s doing or the exact function it’s trying to accomplish. I get that it’s allowing multiplatform development of UIs with compose, but I’m definitely still missing a critical piece of information.
l

Landry Norris

09/02/2022, 12:11 PM
The point is that Compose UI has its own renderer using skia (similar to how Flutter works). This has advantages, like keeping things more similar between platforms, but also has disadvantages, mainly that it’s harder to make the UI feel ‘right’ on the platform, and looking at the state of redwood vs compose UI for iOS, you can see that building the renderer from scratch takes longer to do right. Redwood lets you write Compose code, but delegate the rendering to the platform’s UI library (think UIKit, SwiftUI on iOS, View, Compose on Android, Swing, AWT on JVM, etc.). The main advantage to this being that the UI should feel ‘right’ on the platform by default.
s

spierce7

09/02/2022, 1:45 PM
All of this I assumed. Looking at the code examples in the Readme I hardly see any of that:
Looking at the samples help a little: https://github.com/cashapp/redwood/tree/trunk/samples
b

Brian Guertin

09/02/2022, 10:39 PM
@jw Cool, Redwood looks eerily similar to the (currently closed source) way we do things at my current company, data classes for the widgets, per-platform implementations, and everything. What we do differently, is not only are the widgets data classes, they are also
@Serializable
(via kotlinx.serialization). We have a WSYWIG editor in the browser (no-code/low-code), which saves screens as JSON tree of widgets, which the clients (Android, iOS, Web) fetch, and render at runtime (a.k.a. server-side rendering). Currently the platform widget renderers are written in Compose UI for Android, Compose Web/DOM, UIViews for iOS (not SwiftUI because this is actually a 5 year old project, haven't upped minVersion to iOS 13 yet)
View count: 25