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

Centering via MultilineTextAlignment modifier doesn't work #9

Closed
thipokch opened this issue Jun 8, 2022 · 2 comments
Closed

Centering via MultilineTextAlignment modifier doesn't work #9

thipokch opened this issue Jun 8, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@thipokch
Copy link

thipokch commented Jun 8, 2022

Have you read the Contributing Guidelines?

General Information

  • Project version:
    1.1.0
  • Platform/OS version:
    iOS 14 and 15
  • IDE version:
    Xcode 13
  • Devices:
    iPhone 13
  • Any related GitHub issues:
    Nope

Describe the bug

.multilineTextAlignment(.center) doesn't center align the text

Steps to reproduce

Provide numbered steps to follow that reproduce the bug.

  • Create a TextView()
  • Add .multilineTextAlignment(.center) modifier
  • Preview it

Expected behavior

Clearly and concisely describe what you expected to happen.

  • .multilineTextAlignment(.center) should center align the text

Screenshots

If applicable, add screenshots, gifs, or videos to help explain your problem.

Screen Shot 2022-06-08 at 10 03 26 AM

@thipokch thipokch added the bug Something isn't working label Jun 8, 2022
@thipokch
Copy link
Author

thipokch commented Jun 8, 2022

My bad... the border modifier return View instead of TextView

@thipokch thipokch closed this as completed Jun 8, 2022
@shaps80
Copy link
Contributor

shaps80 commented Jun 8, 2022

Haha I was gonna say, this was working 😂 Thanks for the clarifying!

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