I would like to you use custom font in my app. I can change it almost everywhere. Except action sheets. How to do it?
I know how to change color using this code in SceneDelegate.swift:
UIView.appearance(whenContainedInInstancesOf: [UIAlertController.self]).tintColor = UIColor(Color.accentColor)
I cannot see anything font related in the methods list for this code.
My code for action sheet is this:
Button(action: {
self.showingActionSheet = true
})
{
HStack {
Text("Open Action Sheet")
}
}
.actionSheet(isPresented: $showingActionSheet) {
ActionSheet(title: Text("Title"), message: Text("message"), buttons: [
.default(Text("Action 1")) {
// Do something
},
.cancel()
])
}