Skip to content

Commit

Permalink
Updated for visionOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Feb 19, 2024
1 parent 674235c commit 5503fb8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 71 deletions.
67 changes: 2 additions & 65 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,71 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire.git",
"state" : {
"revision" : "f82c23a8a7ef8dc1a49a8bfc6a96883e79121864",
"version" : "5.5.0"
}
},
{
"identity" : "bluecryptor",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Kitura/BlueCryptor.git",
"state" : {
"revision" : "cec97c24b111351e70e448972a7d3fe68a756d6d",
"version" : "2.0.2"
}
},
{
"identity" : "blueecc",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Kitura/BlueECC.git",
"state" : {
"revision" : "1485268a54f8135435a825a855e733f026fa6cc8",
"version" : "1.2.201"
}
},
{
"identity" : "bluersa",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Kitura/BlueRSA.git",
"state" : {
"revision" : "440f78db26d8bb073f29590f1c7bd31004da09ae",
"version" : "1.0.201"
}
},
{
"identity" : "kituracontracts",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Kitura/KituraContracts.git",
"state" : {
"revision" : "6edf7ac3dd2b3a2c61284778d430bbad7d8a6f23",
"version" : "2.0.1"
}
},
{
"identity" : "loggerapi",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Kitura/LoggerAPI.git",
"state" : {
"revision" : "4e6b45e850ffa275e8e26a24c6454fd709d5b6ac",
"version" : "2.0.0"
}
},
{
"identity" : "swift-jwt",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Kitura/Swift-JWT",
"state" : {
"revision" : "f68ec28fbd90a651597e9e825ea7f315f8d52a1f",
"version" : "4.0.1"
}
},
{
"identity" : "swift-log",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-log.git",
"state" : {
"revision" : "532d8b529501fb73a2455b179e0bbb6d49b652ed",
"version" : "1.5.3"
"revision" : "3dc6a42c7727c49bf26508e29b0a0b35f9c7e1ad",
"version" : "5.8.1"
}
},
{
Expand Down
6 changes: 2 additions & 4 deletions Sources/DarockKit/Neumorphic/ColorExtension.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !os(visionOS)
import SwiftUI

public extension Color {
Expand Down Expand Up @@ -39,8 +40,5 @@ public extension Color {
NeumorphicKit.color(light: defaultDarkShadowSolidColor, dark: darkThemeDarkShadowSolidColor)
}
}




}
#endif
3 changes: 2 additions & 1 deletion Sources/DarockKit/Neumorphic/NeumorphicKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Copyright © 2020 Costa Chung. All rights reserved.
// Neumorphism Soft UI

#if !os(visionOS)
import SwiftUI

public struct NeumorphicKit {
Expand Down Expand Up @@ -56,6 +57,6 @@ public struct NeumorphicKit {
}

}

#endif


2 changes: 2 additions & 0 deletions Sources/DarockKit/Neumorphic/SoftButtonStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Copyright © 2020 Costa Chung. All rights reserved.
// Neumorphism Soft UI

#if !os(visionOS)
import SwiftUI

public enum SoftButtonPressedEffect {
Expand Down Expand Up @@ -134,3 +135,4 @@ extension NavigationLink {
self.buttonStyle(SoftDynamicButtonStyle(content, mainColor: mainColor, textColor: textColor, darkShadowColor: darkShadowColor, lightShadowColor: lightShadowColor, pressedEffect : pressedEffect, padding:padding))
}
}
#endif
3 changes: 2 additions & 1 deletion Sources/DarockKit/Neumorphic/SoftDynamicToggleStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Costa Chung on 11/12/2020.
//

#if !os(visionOS)
import SwiftUI

public struct SoftDynamicToggleStyle<S: Shape> : ToggleStyle {
Expand Down Expand Up @@ -124,5 +125,5 @@ extension Toggle {
}

}

#endif

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Neumorphism Soft UI
//

#if !os(visionOS)
import SwiftUI

private struct SoftInnerShadowViewModifier<S: Shape> : ViewModifier {
Expand Down Expand Up @@ -85,3 +86,4 @@ extension View {
}

}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Copyright © 2020 Costa Chung. All rights reserved.
// Neumorphism Soft UI

#if !os(visionOS)
import SwiftUI

private struct SoftOuterShadowViewModifier: ViewModifier {
Expand Down Expand Up @@ -34,3 +35,4 @@ extension View {
}

}
#endif
2 changes: 2 additions & 0 deletions Sources/DarockKit/Neumorphic/View+InverseMask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Copyright © 2020 Costa Chung. All rights reserved.
// Neumorphism Soft UI

#if !os(visionOS)
import SwiftUI

extension View {
Expand All @@ -16,3 +17,4 @@ extension View {
)
}
}
#endif

0 comments on commit 5503fb8

Please sign in to comment.