Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't able to change the navigationBar title color #33

Closed
PradeshKumar opened this issue Jun 2, 2020 · 7 comments
Closed

Couldn't able to change the navigationBar title color #33

PradeshKumar opened this issue Jun 2, 2020 · 7 comments
Assignees

Comments

@PradeshKumar
Copy link

Currently, it's appearing white color and also, all letters are in caps.

DSMAppearance.setNavigationBarTitleTextFont(UIFont(name: "Cairo", size: 10)!, color: .black)

@ashokds
Copy link
Collaborator

ashokds commented Jun 3, 2020

Please try with iOS specific font. ("Cairo" is an Android/Google platform font).

Swift:
DSMAppearance.setNavigationBarTitleTextFont(UIFont.systemFont(ofSize: 10, weight: UIFont.Weight.bold), color: .black)

Objective-c:
[DSMAppearance setNavigationBarTitleTextFont:[UIFont systemFontOfSize:10 weight:UIFontWeightBold] color:UIColor.systemPinkColor];

@ashokds ashokds self-assigned this Jun 3, 2020
@PradeshKumar
Copy link
Author

Even, I've tried that already, it's not working too.

@ashokds
Copy link
Collaborator

ashokds commented Jun 5, 2020

Could you please post the code snippet surrounding the call DSMAppearance.setNavigationBarTitleTextFont in your project.

One ideal place to invoke this method would be before presenting the signing ceremony. For example, in DocuSignViewController in swift sample app can be modified as:

       // set sdk styling
        DSMAppearance.setNavigationBarTintColor(UIColor(red: 46.0/255, green: 109.0/255, blue: 164.0/255, alpha: 1.0))
        DSMAppearance.setBarButtonItemsTintColor(UIColor.white)
        DSMAppearance.setNavigationBarTitleTextFont(UIFont.systemFont(ofSize: 10, weight: UIFont.Weight.bold), color: .green)

        let templateId: String = ProfileManager.sharedInstance.getCurrentTemplateId()
        let tabData: Dictionary = ProfileManager.sharedInstance.getTemplateTabData(templateId:templateId)
        let recipientData: Array = ProfileManager.sharedInstance.getTemplateRecipientData(templateId:templateId)
        let onlineSign: Bool = !ProfileManager.sharedInstance.getUseOfflineFlow()
        let attachmentUrl: URL? = ProfileManager.sharedInstance.getAttachmentUrl()
        let customFields = ProfileManager.sharedInstance.getCustomFieldsData(templateId:templateId)

        // display template via sdk
        TemplatesManager.sharedInstance.displayTemplateForSignature(templateId: templateId, controller: self, tabData: tabData, recipientData: recipientData, customFields:customFields, onlineSign: onlineSign, attachmentUrl: attachmentUrl) { (controller, errMsg) in

And for the signer named "The Lion King", resulting navigation bar during Signing would look like:
Issue-33-github

@PradeshKumar
Copy link
Author

Hi @ashokds,

I think, you're trying in an offline mode. Please check it in on online mode:

navigationBarTitleIssue

Note: I'm using DocuSign SDK v2.2.5

@PradeshKumar
Copy link
Author

Any update @ashokds ?

@ashokds
Copy link
Collaborator

ashokds commented Jun 12, 2020

Hi @PradeshKumar , I'll post an update soon, working with the product team to prioritize it. One of the UIComponent (OnlineSigning) isn't getting the font/color assignment properly. Thanks for bringing it up to our notice.

@LarryKlugerDS
Copy link

Closing due to age of last activity.
Please respond if this is still an issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants