Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

The text starts from the middle when a TextView has an initial height #10

Closed
minimaluminium opened this issue Jun 10, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@minimaluminium
Copy link

minimaluminium commented Jun 10, 2022

General Information

  • Project version: 1.1.0
  • Platform/OS version: iOS >= 14
  • IDE version: Xcode 13.4.1
  • Devices: iPhone 13 mini

Describe the bug

The text starts from the middle when a TextView has an initial height.

Steps to reproduce

  1. Add a TextView
  2. Add a frame modifier to set the minimum height
TextView($text)
    .placeholder("Description")
    .frame(minHeight: 80, maxHeight: .infinity)

Expected behavior

I'm trying to replicate the new reminder form ("Notes" field) of the default Reminder app which has a minimum height to start with and grows with the content. This library handles it like a pro except one tiny issue that the text alignment is in the middle instead of top.

Screenshots

CleanShot 2022-06-10 at 12 43 52@2x

@minimaluminium minimaluminium added the bug Something isn't working label Jun 10, 2022
@minimaluminium minimaluminium changed the title Text alignment is in the middle The text starts from the middle when a TextView has an initial height Jun 10, 2022
@shaps80
Copy link
Contributor

shaps80 commented Jun 10, 2022

To be honest right now I'm actually rewriting a lot of the internals for this view, bare with me but I'm fairly certain the new code resolves this concern as well as a few others.

@shaps80 shaps80 closed this as completed Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants