Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions KillingPart.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = KillingPart/KillingPart.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 46;
CURRENT_PROJECT_VERSION = 47;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = GQ89YG5G9R;
ENABLE_APP_SANDBOX = YES;
Expand All @@ -483,7 +483,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.2.11;
MARKETING_VERSION = 1.2.12;
PRODUCT_BUNDLE_IDENTIFIER = com.killingpoint.killingpart;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
Expand All @@ -503,7 +503,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = KillingPart/KillingPart.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 46;
CURRENT_PROJECT_VERSION = 47;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = GQ89YG5G9R;
ENABLE_APP_SANDBOX = YES;
Expand All @@ -528,7 +528,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.2.11;
MARKETING_VERSION = 1.2.12;
PRODUCT_BUNDLE_IDENTIFIER = com.killingpoint.killingpart;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
"scale" : "1x"
},
{
"filename" : "my_background 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "my_background 2.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added KillingPart/Resources/Videos/sc 9-16 v2.mp4
Binary file not shown.
33 changes: 33 additions & 0 deletions KillingPart/Views/Components/KillingPartBackgroundView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import SwiftUI

struct KillingPartBackgroundView: View {
private static let artworkAspectRatio: CGFloat = 9 / 16

var body: some View {
GeometryReader { geometry in
let artworkHeight = geometry.size.width / Self.artworkAspectRatio

ZStack(alignment: .top) {
Color(hex: "#060606")

Image("my_background_v2")
.resizable()
.scaledToFit()
.frame(
width: geometry.size.width,
height: artworkHeight,
alignment: .top
)
}
.frame(
width: geometry.size.width,
height: geometry.size.height,
alignment: .top
)
.clipped()
}
.ignoresSafeArea()
.allowsHitTesting(false)
.accessibilityHidden(true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import UIKit
struct AddSearchDetailAlbumArtworkView: View {
let url: URL?
let preloadedImage: UIImage?
let coverSize: CGFloat
let coverSize: CGSize
let coverCornerRadius: CGFloat
@State private var isRotating = false

private var fixedLayoutDiskSize: CGFloat { coverSize }
private var diskSize: CGFloat { coverSize * 0.9 }
private var fixedLayoutDiskSize: CGFloat { coverSize.width }
private var diskSize: CGFloat { coverSize.width * 0.9 }
private var centerLabelSize: CGFloat { diskSize * 0.34 }
private var grooveCount: Int { 9 }
private var grooveBaseInset: CGFloat { diskSize * 0.08 }
Expand All @@ -19,11 +20,25 @@ struct AddSearchDetailAlbumArtworkView: View {
init(
url: URL?,
preloadedImage: UIImage? = nil,
coverSize: CGFloat = 124
coverSize: CGFloat = 124,
coverCornerRadius: CGFloat = 16
) {
self.url = url
self.preloadedImage = preloadedImage
self.coverSize = CGSize(width: coverSize, height: coverSize)
self.coverCornerRadius = coverCornerRadius
}

init(
url: URL?,
preloadedImage: UIImage? = nil,
coverSize: CGSize,
coverCornerRadius: CGFloat = 16
) {
self.url = url
self.preloadedImage = preloadedImage
self.coverSize = coverSize
self.coverCornerRadius = coverCornerRadius
}

var body: some View {
Expand All @@ -35,20 +50,23 @@ struct AddSearchDetailAlbumArtworkView: View {
.onAppear {
isRotating = true
}
.offset(x: coverSize * 0.55)
.offset(x: coverSize.width * 0.55)
.zIndex(0)

albumCover
.frame(width: coverSize, height: coverSize)
.clipShape(RoundedRectangle(cornerRadius: 16))
.overlay {
RoundedRectangle(cornerRadius: 16)
.stroke(Color.white.opacity(0.12), lineWidth: 1)
}
.frame(width: coverSize.width, height: coverSize.height)
.clipShape(RoundedRectangle(cornerRadius: coverCornerRadius))
.overlay {
RoundedRectangle(cornerRadius: coverCornerRadius)
.stroke(Color.white.opacity(0.12), lineWidth: 1)
}
.zIndex(2)
}
.frame(width: coverSize + fixedLayoutDiskSize * 0.48, height: coverSize, alignment: .leading)

.frame(
width: coverSize.width + fixedLayoutDiskSize * 0.48,
height: coverSize.height,
alignment: .leading
)
}

private var albumCover: some View {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ struct MyCollectionDiary: View {
let bottomContentInset = proxy.safeAreaInsets.bottom + keyboardCompensation + extraBottomInset

ZStack {
Image("my_background")
.resizable()
.scaledToFill()
.frame(maxWidth: .infinity, maxHeight: .infinity)
.clipped()
.ignoresSafeArea(.container, edges: .all)
KillingPartBackgroundView()

if viewModel.isDeleted {
MyCollectionDiaryDeletedPlaceholder()
Expand Down
Loading