Skip to content

Supports set AttributedText, TextAlignment, Background Color each Tooltip - #5

Open
2sem wants to merge 2 commits into
BobDeKort:masterfrom
2sem:master
Open

Supports set AttributedText, TextAlignment, Background Color each Tooltip#5
2sem wants to merge 2 commits into
BobDeKort:masterfrom
2sem:master

Conversation

@2sem

@2sem 2sem commented May 18, 2021

Copy link
Copy Markdown
self.tabBar.addToolTip(at: 1, attributedText: "라이브 중 상품".attributed(font: .boldSystemFont(ofSize: 16), foreground: .white)
                                        .mutable().appending("\n한 눈에 보세요!".attributed(font: .systemFont(ofSize: 16), foreground: .white)), backgroundColor: #colorLiteral(red: 0.5355995893, green: 0.3815141618, blue: 0.805349052, alpha: 1), 
                                    gesture: .longPress, 
                                    isEnabled: true)
                .setPaddings(left: 8, top: 6, right: 8, bottom: 6)
                .setTextAlignment(.center)

see clonecoding-grip

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants