Hi,
tabBarItem.title = "LevelsVC-TabBarItem".localize()
with tabBarItem.title i'm able to localize title when it is in viewDidLoad or viewWillappear but the localization will only happen when the tab becomes actives, otherwise it will show default value.
How could I localize, programmatically, the item title without the need to make it active?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
here is a class for a UIKIT button.
Some of those settings work, usch as cornerRadius: it does affect the button display, but some doesn't.
For example, the size from
self.titleLabel?.font = UIFont(name: "Avenir Next Condensed Regular", size: 3)
has no effect at all on the text of the font inside the buttons.
Why is that? And how can I effectively alter the size of text from this subclass?
class VotingButtonStyle: UIButton {
override func draw(_ rect: CGRect) {
super.draw(rect)
self.clipsToBounds = true
self.titleLabel?.font = UIFont(name: "Avenir Next Condensed Regular", size: 3)
self.setTitleColor(.black, for: .normal)
self.titleLabel?.numberOfLines = 3
self.layer.cornerRadius = 8
}
}
Hi,
I managed to have a nested list in swiftui 3 (with foreach) and drag and drop to reorder the list when I enter the built-in edit mode.
Problems / limitation when dragging / dropping a list item from edit mode:
I can't change its nesting level: for example, if I drag an item that is 3 nested levels deep, I can't seem to be able to drop it on let's say level 1.
When an item has children, and they are expanded, if I drag the father, the children will not follow.
I can't drag from one section, and drop on another.
What are the solutions to circumvent those problems?
Is there built-in way to do it, if not, is it even possible without resorting to UIKit?