Skip to content

Commit

Permalink
configure library settings
Browse files Browse the repository at this point in the history
  • Loading branch information
igork-ramotion committed May 5, 2020
1 parent b83c465 commit fe8dfeb
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
5.0
67 changes: 67 additions & 0 deletions BlobMenu.xcodeproj/xcshareddata/xcschemes/BlobMenu.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1140"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3908002224474A3800E7727C"
BuildableName = "BlobMenu.framework"
BlueprintName = "BlobMenu"
ReferencedContainer = "container:BlobMenu.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3908002224474A3800E7727C"
BuildableName = "BlobMenu.framework"
BlueprintName = "BlobMenu"
ReferencedContainer = "container:BlobMenu.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
18 changes: 13 additions & 5 deletions Example/Example/Screens/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ struct ContentView: View {

private var screenView: some View {
switch screen {
case .wallet: return Rectangle().fill(Color.red)
case .exchange: return Rectangle().fill(Color.green)
case .commerce: return Rectangle().fill(Color.gray)
case .stocks: return Rectangle().fill(Color.yellow)
case .wallet: return Rectangle().fill(Color.random)
case .exchange: return Rectangle().fill(Color.random)
case .commerce: return Rectangle().fill(Color.random)
case .stocks: return Rectangle().fill(Color.random)
}
}

Expand All @@ -54,7 +54,6 @@ struct ContentView_Previews: PreviewProvider {
}
}


extension MenuItem {
static let all: [MenuItem] = [
MenuItem(selectedIcon: Image.walletSelected, unselectedIcon: Image.walletUnselected, offset: CGPoint(x: 1, y: -2)),
Expand All @@ -75,3 +74,12 @@ extension Image {
static let gridSelected = Image("Icon_Grid_black")
static let gridUnselected = Image("Icon_Grid_gray")
}


extension Color {
static var random: Color {
return Color(red: .random(in: 0...1),
green: .random(in: 0...1),
blue: .random(in: 0...1))
}
}
10 changes: 5 additions & 5 deletions blob-menu.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = 'garland-view'
s.name = 'blob-menu'
s.version = '1.0.0'
s.summary = 'Collection view controller with left and right animated transition.'
s.summary = 'SwiftUI menu control.'
s.homepage = 'https://github.com/Ramotion/garland-view'
s.license = 'MIT'
s.authors = { 'Igor Kolpachkov' => 'igor.k@ramotion.com' }
s.ios.deployment_target = '10.0'
s.source = { :git => 'https://github.com/Ramotion/garland-view.git', :tag => s.version.to_s }
s.authors = { 'Igor Kolpachkov' => 'igor.k@ramotion.agency' }
s.ios.deployment_target = '13.4'
s.source = { :git => 'https://github.com/Ramotion/blob-menu.git', :tag => s.version.to_s }
s.source_files = 'Sources/*.swift'
end

0 comments on commit fe8dfeb

Please sign in to comment.