royalsaltmerchant / editr

a text editor in swift for macos
1 stars 0 forks source link

insertion point not visible #1

Open DevulderJeanPaul opened 1 year ago

DevulderJeanPaul commented 1 year ago

with textView.backgroundColor = black the insertion point is not visible (because it's color black) give impression of buggy app :) for solve change background to gray by example

royalsaltmerchant commented 1 year ago

with textView.backgroundColor = black

the insertion point is not visible (because it's color black)

give impression of buggy app :)

for solve change background to gray by example

Hi, yes this is just an experiment project. Unfortunately I haven't found good a implementation that allows all the proper functionality. One big problem is scrolling, both horizontal and vertical. I've been fighting with SwiftUI for days now without success. Can't seem to get infinite horizontal scroll and vertical is either buggy or extends the height of the screen. Scroll view and geometry doesn't play well with the custom appkit components I guess. I'm no expert in swift so it's all discovery right now.