Post

Replies

Boosts

Views

Activity

How do you set font weight for ButtonStyle in SwiftUI
Hi, I would like to ask how to change fontWeight of a button label within ButtonStyle. However I can't figure it how to do it. This is my code: struct CapsuleButtonStyle: ButtonStyle {     func makeBody(configuration: Self.Configuration) -> some View {         configuration.label             .font(.footnote)             .fontWeight(.bold) /* All modifiers work except this one*/             .foregroundColor(.white)             .padding(.horizontal, 11)             .padding(.vertical, 6)             .background(Color.blue)             .cornerRadius(.infinity)     } } Thanks for your help
7
0
6.2k
Aug ’20
What is the right way to store user credentials?
Hi, Im developing custom suite of apps for small business. We have custom backend that uses bearer token authentication. So user logs in and is granted an access and refresh token. I want to a single sign on experience. Where user needs to sign in only to one app and have access to all other apps. However I'm getting confused of all the possible options for authentication iOS provides and how they work together. Like password autofill, keychain, SSO extensions. For example: what is the purpose of keychain sharing when password autofill can share credentials based on associated domains should I somehow manually save credentials like password and username when password autofill is used what is the difference between using shared keychain vs. SSO Can any one clarify? Thank you in advance😊
1
1
2.3k
Jul ’20