We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id
Currently the API is:
- (NSArray <NSLayoutConstraint *> *)alignToView:(id)view;
This id isn't optimal. With Swift we could do something like:
@objc protocol FLKViewable { var flkView: UIView { get } } extension UIView: FLKViewable { var flkView: UIView { return self } } extension UILayoutGuide: FLKViewable { var flkView: UIView { return self.representedView } } extension FLKLayoutGuide: FLKViewable { var flkView: UIView { return self.flk_view } }
Then we could constrain the view to be a FLKViewable:
- (NSArray <NSLayoutConstraint *> *)alignToView:(NSObject <FLKViewable> *)view;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently the API is:
This
id
isn't optimal. With Swift we could do something like:Then we could constrain the view to be a FLKViewable:
The text was updated successfully, but these errors were encountered: