apptentive / apptentive-ios

Apptentive Legacy SDK for iOS. See https://github.com/apptentive/apptentive-kit-ios for Version 6.
http://www.apptentive.com/
BSD 3-Clause "New" or "Revised" License
147 stars 103 forks source link

Apptentive Styling Questions #303

Open garyzhuge opened 1 year ago

garyzhuge commented 1 year ago

Hi, I'm working on an integration of apptentive right now.

  1. We want the ability to left justify the apptentiveSurveyIntroductionLabel text so that it starts from the leftmost side instead of the center.

    CleanShot 2023-07-03 at 15 34 59@2x
  2. We would also like the ability to expand the submit button like below.

    CleanShot 2023-07-03 at 15 33 50@2x
  3. Is it possible to use our own SVG or PNG as background for the survey? Are these tasks currently possible with just using the UIKit extensions?

frankus commented 1 year ago

Unfortunately the customizations you listed aren't available right now in our UIKit extensions (which are mostly fonts and colors), but it's something I can bring up with our product team.

We are starting to migrate away from the UIKit extension approach to rely more on the UIAppearance system. This would look like marking certain internal view classes as public (e.g. SurveyIntroductionView), being mindful of folks wanting to override (e.g. UITableView's backgroundView, which unfortunately currently gets overwritten), and adding custom properties for things like button width.