Giter Site home page Giter Site logo

exploresetmarkedtext's Introduction

日本語

ExploreSetMarkedText

Let's explore how setMarkedText works

What's it?

This is a sample project to use setMarkedText. Although the behavior was improved a bit after the publish of iOS14.4, there are still many unexpected behavior. Let's check them.

When notice bug

If you found unexpected behavior relating to setMarkedText, please make new issues on this repository or report it to Apple.

exploresetmarkedtext's People

Contributors

ensan-hcl avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sztsiit

exploresetmarkedtext's Issues

Marked text remains although keyboard closed.

Environment

iOS14.4 + Xcode 12.4, on Memo App, iPhone SE(2nd gen), language is Japanese.

How to reproduce

patern 1

  1. push marked text 1 on memo edit view.
  2. close keyboard by swiping down.
  3. reopen keyboard.
  4. the marked text gets empty.

patern 2

  1. push marked text 2 on memo edit view.
  2. tap around marked text and move cursor to end of marked text.
  3. close keyboard by swiping down.
  4. reopen keyboard.
  5. the marked text doesn't get empty.

both are unexpected behavior.

Proxy isn't updated after delete marked text.

Environment

iOS14.4 + Xcode 12.4, on Memo App, iPhone SE(2nd gen), language is Japanese.

How to reproduce

  1. push marked text 1.
  2. push delete.
  3. left reads "markedtext".
  4. push print.
  5. still left reads "markedtext".
  6. push delete.
  7. left reads "markedtex".

adjustTextPosition doesn't work on marked text

Environment

iOS14.4 + Xcode 12.4, on Memo App, iPhone SE(2nd gen), language is Japanese.

How to reproduce

  1. prepare text as following. | represents cursor position.
abcdefg
abcdefg


|
  1. push marked text 1.
  2. push
  3. the marked text disappear.
  4. push
  5. push
  6. push
  7. when cursor reach abcdefg|, suddenly marked text appears. Marked text reads "abcdefg".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.