-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from makinosp/develop
Develop
- Loading branch information
Showing
28 changed files
with
298 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// GeometryProxy+Equatable.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/11/04. | ||
// | ||
|
||
import SwiftUICore | ||
|
||
extension GeometryProxy: @retroactive Equatable { | ||
public static func == (lhs: GeometryProxy, rhs: GeometryProxy) -> Bool { | ||
lhs.size == rhs.size && lhs.safeAreaInsets == rhs.safeAreaInsets | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// | ||
// PreviewProfile.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/10/20. | ||
// | ||
|
||
import Foundation | ||
import VRCKit | ||
|
||
extension PreviewData { | ||
enum Profile: String, CaseIterable { | ||
case emma | ||
case josh | ||
case clarke | ||
case nathalie | ||
case meihua | ||
case stella | ||
} | ||
} | ||
|
||
extension PreviewData.Profile { | ||
var name: String { | ||
rawValue.capitalized | ||
} | ||
|
||
static var random: Self? { | ||
allCases.randomElement() | ||
} | ||
|
||
static var randomName: String { | ||
random?.rawValue.capitalized ?? "" | ||
} | ||
|
||
static var randomImageUrl: URL? { | ||
random?.imageUrl() | ||
} | ||
} | ||
|
||
extension PreviewData.Profile: ImageUrlRepresentable { | ||
func imageUrl(_ resolution: ImageResolution = .origin) -> URL? { | ||
let path: String | ||
switch self { | ||
case .emma: | ||
path = "/00/64/j71jho9d_o.jpeg" | ||
case .josh: | ||
path = "/4c/65/8mxWMTxR_o.jpg" | ||
case .clarke: | ||
path = "/27/09/ooNrEkFY_o.jpg" | ||
case .nathalie: | ||
path = "/46/2a/PjWXRlvt_o.jpg" | ||
case .meihua: | ||
path = "/55/ca/a2MRVLCx_o.jpg" | ||
case .stella: | ||
path = "/2f/73/4L6Bn9x9_o.jpg" | ||
} | ||
return URL(string: PreviewData.imageBaseURL + path) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.