Skip to content

Commit

Permalink
Patch 1.0.1
Browse files Browse the repository at this point in the history
fix:
- Fixed CocoaPods deployment
  • Loading branch information
FulcrumOne committed May 6, 2024
1 parent b45a42e commit 422e6b6
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
6 changes: 4 additions & 2 deletions MijickCameraView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ Pod::Spec.new do |s|
CameraView is a free and open-source library dedicated for SwiftUI that allows you to create fully customisable camera view in no time. Keep your code clean.
DESC

s.version = '1.0.0'
s.version = '1.0.1'
s.ios.deployment_target = '14.0'
s.swift_version = '5.10'

s.source_files = 'Sources/**/*'
s.source_files = 'Sources/**/*.{swift}'
s.resources = 'Sources/Internal/Assets/*.{xcassets, json}'
s.dependency 'MijickTimer'
s.frameworks = 'SwiftUI', 'Foundation', 'AVKit', 'AVFoundation', 'MijickTimer'

s.homepage = 'https://github.com/Mijick/CameraView.git'
Expand Down
16 changes: 16 additions & 0 deletions Sources/Internal/Extensions/Bundle++.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// Bundle++.swift of MijickCameraView
//
// Created by Tomasz Kurylik
// - Twitter: https://twitter.com/tkurylik
// - Mail: [email protected]
// - GitHub: https://github.com/FulcrumOne
//
// Copyright ©2024 Mijick. Licensed under MIT License.


import Foundation

extension Bundle {
static var mijick: Bundle { .init(identifier: "MijickCameraView-MijickCameraView-resources") ?? .main }
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct DefaultCameraErrorView: MCameraErrorView {
private extension DefaultCameraErrorView {
func createCloseButton() -> some View {
Button(action: closeControllerAction) {
Image("icon-cancel", bundle: .module)
Image("icon-cancel", bundle: .mijick)
.resizable()
.frame(width: 24, height: 24)
.foregroundColor(Color.white)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Internal/Views/Default/DefaultCameraPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fileprivate struct BottomButton: View {
}
private extension BottomButton {
func createButtonLabel() -> some View {
Image(icon, bundle: .module)
Image(icon, bundle: .mijick)
.resizable()
.frame(width: 26, height: 26)
.foregroundColor(iconColor)
Expand Down
8 changes: 4 additions & 4 deletions Sources/Internal/Views/Default/DefaultCameraView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ fileprivate struct CloseButton: View {

var body: some View {
Button(action: action) {
Image("icon-cancel", bundle: .module)
Image("icon-cancel", bundle: .mijick)
.resizable()
.frame(width: 24, height: 24)
.foregroundColor(Color.white)
Expand Down Expand Up @@ -222,7 +222,7 @@ private extension TopButton {
.frame(width: 32, height: 32)
}
func createIcon() -> some View {
Image(icon, bundle: .module)
Image(icon, bundle: .mijick)
.resizable()
.frame(width: 16, height: 16)
.foregroundColor(Color.white)
Expand Down Expand Up @@ -299,7 +299,7 @@ private extension BottomButton {
Circle().fill(Color.white.opacity(0.12))
}
func createIcon() -> some View {
Image(icon, bundle: .module)
Image(icon, bundle: .mijick)
.resizable()
.frame(width: 26, height: 26)
.foregroundColor(iconColor)
Expand All @@ -325,7 +325,7 @@ fileprivate struct OutputTypeButton: View {
}
private extension OutputTypeButton {
func createButtonLabel() -> some View {
Image(icon, bundle: .module)
Image(icon, bundle: .mijick)
.resizable()
.frame(width: iconSize, height: iconSize)
.foregroundColor(iconColor)
Expand Down

0 comments on commit 422e6b6

Please sign in to comment.