Skip to content

Commit

Permalink
Carthage support (#31)
Browse files Browse the repository at this point in the history
Carthage support added
  • Loading branch information
omaralbeik committed Dec 12, 2016
1 parent dda1f56 commit 5a6dd46
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 2 deletions.
22 changes: 22 additions & 0 deletions README.md
Expand Up @@ -52,6 +52,28 @@ Then, run the following command:
$ pod install
```


### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with [Homebrew](http://brew.sh/) using the following command:

```bash
$ brew update
$ brew install carthage
```

To integrate SwifterSwift into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "omaralbeik/SwifterSwift" ~> 1.3.4
```

Run `carthage update` to build the framework and drag the built `SwifterSwift.framework` into your Xcode project.



### Manually

Add the [extensions](SwifterSwift/SwifterSwift/Extensions) folder to your Xcode project to use all extensions, or a specific extension.
Expand Down
Binary file added SwifterSwift.framework.zip
Binary file not shown.
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0786A3ED1DA8194200DFD5C0"
BuildableName = "SwifterSwift.framework"
BlueprintName = "SwifterSwift"
ReferencedContainer = "container:SwifterSwift.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0786A3F61DA8194300DFD5C0"
BuildableName = "SwifterSwiftTests.xctest"
BlueprintName = "SwifterSwiftTests"
ReferencedContainer = "container:SwifterSwift.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0786A3ED1DA8194200DFD5C0"
BuildableName = "SwifterSwift.framework"
BlueprintName = "SwifterSwift"
ReferencedContainer = "container:SwifterSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</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">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0786A3ED1DA8194200DFD5C0"
BuildableName = "SwifterSwift.framework"
BlueprintName = "SwifterSwift"
ReferencedContainer = "container:SwifterSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0786A3ED1DA8194200DFD5C0"
BuildableName = "SwifterSwift.framework"
BlueprintName = "SwifterSwift"
ReferencedContainer = "container:SwifterSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Expand Up @@ -397,7 +397,7 @@ public extension UIView {
CATransaction.commit()
}

/// SwifterSwift: Add Visual Format constraints
/// SwifterSwift: Add Visual Format constraints.
///
/// - Parameters:
/// - withFormat: visual Format language
Expand All @@ -413,7 +413,7 @@ public extension UIView {
addConstraints(NSLayoutConstraint.constraints(withVisualFormat: withFormat, options: NSLayoutFormatOptions(), metrics: nil, views: viewsDictionary))
}

/// SwifterSwift: Anchor all sides of the view into it's superview
/// SwifterSwift: Anchor all sides of the view into it's superview.
@available(iOS 9, *) public func fillToSuperview() {
// https://videos.letsbuildthatapp.com/
translatesAutoresizingMaskIntoConstraints = false
Expand Down

0 comments on commit 5a6dd46

Please sign in to comment.