Skip to content
New issue

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

No more availability checks #108

Merged
merged 2 commits into from
Jul 18, 2021
Merged

No more availability checks #108

merged 2 commits into from
Jul 18, 2021

Conversation

dokun1
Copy link
Owner

@dokun1 dokun1 commented Jul 18, 2021

Lumina used to check whether iOS 11 was available - mostly to see whether CoreML was possible.

Description

As of 1.6.0, Lumina requires iOS 13 as the minimum. No APIs in Lumina currently need anything higher than 13.0. Thus, this change is cosmetic in nature, and the API should be intact. There should be zero @available() checks in Lumina now

Motivation and Context

I eventually plan to contribute some Combine subscriptions, but also some contour checking.

How Has This Been Tested?

All existing functionality tested in sample app.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

}
switch self.torchState {
//swiftlint:disable empty_enum_arguments
case .on(_):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Arguments can be omitted when matching enums with associated values if they are not used.
empty_enum_arguments CameraActionsExtension.swift:27

@@ -77,7 +77,6 @@ extension LuminaViewController {
LuminaLogger.notice(message: "torch mode should be set to on")
camera.torchState = .on(intensity: 1.0)
self.torchButton.updateTorchIcon(to: SystemButtonType.FlashState.on)
//swiftlint:disable empty_enum_arguments
case .on(_):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Arguments can be omitted when matching enums with associated values if they are not used.
empty_enum_arguments ViewControllerButtonFunctions.swift:80

@dokun1 dokun1 merged commit 1908b9a into master Jul 18, 2021
@dokun1 dokun1 deleted the fixing-availability branch July 18, 2021 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants