Skip to content

Can we shrink or scale the slice text? Some of slice Word is skipped  #31

@chirag05k

Description

@chirag05k

Hello, @sh-khashimov thanks for your awesome library.

I am using Podium Wheel Layout using variousWheelPodiumConfiguration

- What is the issue I am facing

  • In the slice, the text does not fully appear it's cropping somehow, I have also added an image for your reference

- What I have tried

  • I have set up the content margin & TextPreferences as well
          var wheelPreferences = SFWConfiguration.WheelPreferences(circlePreferences: circlePreferences,
                                                                 slicePreferences: slicePreferences,
                                                                 startPosition: .right)
        wheelPreferences.contentMargins = Margins(top: 0, left: 0, right: 0, bottom: 0)
       var preferences = TextPreferences(textColorType: textColorType,
                                         font: font,
                                         verticalOffset: 0)
       preferences.alignment = .left
       preferences.orientation = .vertical
       preferences.isCurved = false
       preferences.spacing = -1
       preferences.numberOfLines = 0
       public extension ImagePreferences {
          static var variousWheelPodiumImage: ImagePreferences {
             let imagePreferences = ImagePreferences(preferredSize: CGSize(width: 50, height: 50), verticalOffset: 0)
           return imagePreferences
         }
      }
  • I have decreased the font size but the large screen device shows a really small size of the font

- Questions ❓

  • Can we auto-shrink the font according to the device?
  • Do you have a temporary solution for it? If yes I will add it and also work on this project and I will create the PR
  • Could you please quickly suggest to me a file where I can review and temporarily fix my problem in the project?

Issue Reference:

Screenshot 2022-06-16 at 11 32 55 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions