Skip to content

Instantly share code, notes, and snippets.

@vitidev
vitidev / BasicTextFieldWithCursorAtEnd.kt
Created May 7, 2024 20:37 — forked from Zhuinden/BasicTextFieldWithCursorAtEnd.kt
A Compose TextField that initializes the cursor position at the end of the text, rather than the start, when focused without tapping the TextField manually.
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software