Hey All!
This is my first post here, so excuse me if this has been asked before. I'm new to iOS development, but I'm pretty well versed in other languages. In most languages I work in, there's generally a way to mute certain warnings that come about. In Swift, I've seen that if you save something to a specific variable and don't use it, it can be replaced with an _, and it'll be fine, since the underscore is sort of like a ignored variable (non reference-able, etc)
Anyways, my question is this: I'm currently building an app with a login screen, and decided to implement both email/password login and a Sign in With Apple login with the help of Firebase Auth for storing authenticated sessions and such. In doing so, I learned that there isn't a storyboard element for the sign in with apple button, and so I had to programmatically add it with a ASAuthorizationAppleIDButton. When doing this, and constraining it, specific elements that appeared on my storyboard were constrained based on this button, and so their constraints were programmatically added to the programmatically added Sign In With Apple Button. However, in the storyboard, I get warnings about these buttons missing vertical positioning, since their vertical positioning is not added as a storyboard constraint, but added programmatically through the Swift file that's tied to the storyboard.
How would I mute these warnings, or ignore the vertical positioning warning in my storyboard? I should mention that I'm using UIKit and not SwiftUI for this as well. I'm also using Xcode 12 since my iPhone is on the iOS 14 developer beta.
Thanks in advance for anyone who helps!
This is my first post here, so excuse me if this has been asked before. I'm new to iOS development, but I'm pretty well versed in other languages. In most languages I work in, there's generally a way to mute certain warnings that come about. In Swift, I've seen that if you save something to a specific variable and don't use it, it can be replaced with an _, and it'll be fine, since the underscore is sort of like a ignored variable (non reference-able, etc)
Anyways, my question is this: I'm currently building an app with a login screen, and decided to implement both email/password login and a Sign in With Apple login with the help of Firebase Auth for storing authenticated sessions and such. In doing so, I learned that there isn't a storyboard element for the sign in with apple button, and so I had to programmatically add it with a ASAuthorizationAppleIDButton. When doing this, and constraining it, specific elements that appeared on my storyboard were constrained based on this button, and so their constraints were programmatically added to the programmatically added Sign In With Apple Button. However, in the storyboard, I get warnings about these buttons missing vertical positioning, since their vertical positioning is not added as a storyboard constraint, but added programmatically through the Swift file that's tied to the storyboard.
How would I mute these warnings, or ignore the vertical positioning warning in my storyboard? I should mention that I'm using UIKit and not SwiftUI for this as well. I'm also using Xcode 12 since my iPhone is on the iOS 14 developer beta.
Thanks in advance for anyone who helps!