Skip to content

Commit

Permalink
Merge pull request #39 from enebin/release/0.5.1
Browse files Browse the repository at this point in the history
Release/0.5.1
  • Loading branch information
enebin authored Mar 17, 2024
2 parents bc69f30 + 2af4a39 commit e50a92d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 29 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/github_issue_auto_resolve.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Sources/Aespa/Util/Extension/SwiftUI+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public extension AespaSession {
option: InteractivePreviewOption = .init()
) -> InteractivePreview {
let internalPreview = Preview(of: self, gravity: gravity)
return InteractivePreview(internalPreview)
return InteractivePreview(internalPreview, option: option)
}
}
10 changes: 5 additions & 5 deletions Sources/Aespa/View/InteractivePreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ import AVFoundation
/// zooming, focusing, adjusting focus mode when moved, and showing a crosshair.
public struct InteractivePreviewOption {
/// Flag that controls whether the camera position can be changed. Default is `true`.
public var enableChangePosition = true
public var enableChangePosition: Bool

/// Flag that controls whether zoom functionality is enabled. Default is `true`.
public var enableZoom = true
public var enableZoom: Bool

/// Flag that controls whether focus can be manually adjusted. Default is `true`.
public var enableFocus = true
public var enableFocus: Bool

/// Flag that controls whether the focus mode is changed when the camera is moved. Default is `true`.
public var enableChangeFocusModeWhenMoved = true
public var enableChangeFocusModeWhenMoved: Bool

/// Flag that controls whether a crosshair is displayed on the preview. Default is `true`.
public var enableShowingCrosshair = true
public var enableShowingCrosshair: Bool

/// Initialize the option
public init(
Expand Down

0 comments on commit e50a92d

Please sign in to comment.