CodeEditApp / CodeEditApp/CodeEditTextView

✨ Trailing Padding When Not Wrapping

Aperta
#66 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Swift
Stelle
182
Fork
54
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Description

When lines are not wrapped, there should be additional padding added to the trailing edge. This should probably be configurable for other consumers of this package.

Xcode and other editors add a trailing padding when not wrapping lines so there's better spacing visually on the trailing edge. I don't think this is default behavior for text views, which is why it should be either configurable or be able to be disabled. In Xcode, the padding is 48 pixels.

### Alternatives Considered

The method in https://github.com/CodeEditApp/CodeEditSourceEditor/pull/272 was considered, but this has it's own issues. This type of text layout should be in the text editor.

### Additional Context

_No response_

### Screenshots

_No response_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.