Skip to content

Commit fe8dfeb

Browse files
configure library settings
1 parent b83c465 commit fe8dfeb

File tree

4 files changed

+86
-11
lines changed

4 files changed

+86
-11
lines changed

.swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0
1+
5.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1140"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "3908002224474A3800E7727C"
18+
BuildableName = "BlobMenu.framework"
19+
BlueprintName = "BlobMenu"
20+
ReferencedContainer = "container:BlobMenu.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
<MacroExpansion>
51+
<BuildableReference
52+
BuildableIdentifier = "primary"
53+
BlueprintIdentifier = "3908002224474A3800E7727C"
54+
BuildableName = "BlobMenu.framework"
55+
BlueprintName = "BlobMenu"
56+
ReferencedContainer = "container:BlobMenu.xcodeproj">
57+
</BuildableReference>
58+
</MacroExpansion>
59+
</ProfileAction>
60+
<AnalyzeAction
61+
buildConfiguration = "Debug">
62+
</AnalyzeAction>
63+
<ArchiveAction
64+
buildConfiguration = "Release"
65+
revealArchiveInOrganizer = "YES">
66+
</ArchiveAction>
67+
</Scheme>

Example/Example/Screens/ContentView.swift

+13-5
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ struct ContentView: View {
3030

3131
private var screenView: some View {
3232
switch screen {
33-
case .wallet: return Rectangle().fill(Color.red)
34-
case .exchange: return Rectangle().fill(Color.green)
35-
case .commerce: return Rectangle().fill(Color.gray)
36-
case .stocks: return Rectangle().fill(Color.yellow)
33+
case .wallet: return Rectangle().fill(Color.random)
34+
case .exchange: return Rectangle().fill(Color.random)
35+
case .commerce: return Rectangle().fill(Color.random)
36+
case .stocks: return Rectangle().fill(Color.random)
3737
}
3838
}
3939

@@ -54,7 +54,6 @@ struct ContentView_Previews: PreviewProvider {
5454
}
5555
}
5656

57-
5857
extension MenuItem {
5958
static let all: [MenuItem] = [
6059
MenuItem(selectedIcon: Image.walletSelected, unselectedIcon: Image.walletUnselected, offset: CGPoint(x: 1, y: -2)),
@@ -75,3 +74,12 @@ extension Image {
7574
static let gridSelected = Image("Icon_Grid_black")
7675
static let gridUnselected = Image("Icon_Grid_gray")
7776
}
77+
78+
79+
extension Color {
80+
static var random: Color {
81+
return Color(red: .random(in: 0...1),
82+
green: .random(in: 0...1),
83+
blue: .random(in: 0...1))
84+
}
85+
}

blob-menu.podspec

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
2-
s.name = 'garland-view'
2+
s.name = 'blob-menu'
33
s.version = '1.0.0'
4-
s.summary = 'Collection view controller with left and right animated transition.'
4+
s.summary = 'SwiftUI menu control.'
55
s.homepage = 'https://github.com/Ramotion/garland-view'
66
s.license = 'MIT'
7-
s.authors = { 'Igor Kolpachkov' => 'igor.k@ramotion.com' }
8-
s.ios.deployment_target = '10.0'
9-
s.source = { :git => 'https://github.com/Ramotion/garland-view.git', :tag => s.version.to_s }
7+
s.authors = { 'Igor Kolpachkov' => 'igor.k@ramotion.agency' }
8+
s.ios.deployment_target = '13.4'
9+
s.source = { :git => 'https://github.com/Ramotion/blob-menu.git', :tag => s.version.to_s }
1010
s.source_files = 'Sources/*.swift'
1111
end

0 commit comments

Comments
 (0)