Commit Graph

511 Commits

Author SHA1 Message Date
Robert Payne 18608ead65 Xcode 12 and SwiftPM enhancements 2020-09-25 15:27:40 +12:00
wotjd 4cac0e9ac1
Add method getting constraint with closure to ConstraintMakerRelatable (#663)
* add ConstraintMakerRelatable extension

* fix fatalError message

Co-authored-by: Jimi <jimi-hpcnt@hpcnt.com>
2020-07-08 10:57:32 +12:00
Roman Podymov 35e8835a6b
Use << for ConstraintAttributes options (#659)
* Use << for ConstraintAttributes options

* iPhone 6s is not supported by the latest Xcode
2020-07-08 10:53:40 +12:00
Wang, Chi dfe862da48
Add back support for OS X 10.11 (#645) 2020-07-08 10:52:57 +12:00
Natascha Fadeeva 4ecdc8545f Add test assert to unit test testCanSetLabel. (#625) 2019-11-27 23:28:29 +13:00
Ben Yohay 1baa163651 project.pbxproj: Update to recommended settings. (#627) 2019-11-27 23:28:02 +13:00
pushp1989 d592d1d9be Migrate to Xcode 11 and updated travis.yml (#629)
* Migrate to Xcode 11 and updated travis.yml

* Travis to support Xcode 11
2019-11-27 23:27:13 +13:00
Alex Simpson 441a1695ed Update deprecations to allow Xcode to auto-fixup. (#634) 2019-11-27 23:26:43 +13:00
Sven Driemecker 892722a933 add-dimensional-edges: add ConstraintItems horizontalEdges, verticalEdges, directionalHorizontalEdges and directionalVerticalEdges as convenience items to express left+right, top+bottom or leading+trailing (#637) 2019-11-27 23:26:09 +13:00
Liam Elmore 198b62402f Add background color to quick start box in README.md (#619) 2019-08-05 20:39:18 +12:00
Robert Payne d458564516 Update Podspec 2019-08-05 18:29:37 +12:00
Robert Payne fbd58b106a Merge branch 'develop' of github.com:SnapKit/SnapKit into develop 2019-08-05 18:16:43 +12:00
Robert Payne 1754aed4dc Revert #574 2019-08-05 18:16:37 +12:00
Max Cobb bffbeecd10 added updates to Package.swift so it can be imported with Xcode 11 (#615) 2019-08-05 17:17:03 +12:00
Shiva Huang df9df818dd Add Playground Sample (#608) 2019-08-05 17:16:46 +12:00
Josh Converse d482f59648 Adds two new compositions – DirectionalEdges and DirectionalMargins (#595)
* WIP

* Add directional margins

* Whitespace
2019-08-05 17:16:17 +12:00
Vitalii Budnik 222e14ab37 Make ConstraintViewDSL content priorities nonmutating (#586) 2019-06-11 00:33:33 +12:00
Josh Converse 04e9c890aa Adds support for NSDirectionalEdgeInsets as an inset constant (#594) 2019-06-11 00:32:33 +12:00
Robert Payne 9ee45b354d Fix equality check for iOS 2019-04-28 23:06:23 +12:00
Robert Payne c904582015 Fix layout constraint comparison 2019-04-28 20:57:54 +12:00
Robert Payne 5b0282cf8b Bump min version requirements 2019-04-28 20:57:48 +12:00
Robert Payne 4cb3e3a938 Update Podspec 2019-04-28 20:44:54 +12:00
Robert Payne f59340c39b
Revert "[EXC_BAD_ACCESS] Update LayoutConstraint == operator to support iOS 10 and higher changes (#574)" (#593)
This reverts commit bc2b0b9332.
2019-04-28 20:43:09 +12:00
Robert Payne e9b237468b
Update README.md 2019-04-25 12:45:13 +12:00
Robert Payne 74f684b3eb
Update README.md 2019-04-25 12:44:47 +12:00
Robert Payne 328b53b7e3 Update min target versions 2019-04-23 23:01:11 +12:00
Robert Payne 4403a45695 Update min target versions 2019-04-23 22:59:46 +12:00
Robert Payne 5ac6af76c2 Update podspec 2019-04-23 22:47:21 +12:00
Linus Unnebäck eea05d74f0 Add back Package.swift for SwiftPM compatibility (#559)
reverts 477fffae4c
2019-04-04 00:45:05 +13:00
Christian Schnorr b3b64f61a7 Fix incorrect behavior of inset with center and baseline anchors (#569)
* Fix insets adjusting center attributes incorrectly

* Fix insets adjusting baseline attributes incorrectly
2019-04-03 06:31:01 +13:00
Alexander Belonogov bc2b0b9332 [EXC_BAD_ACCESS] Update LayoutConstraint == operator to support iOS 10 and higher changes (#574)
* @sashabelonogov Update LayoutConstraint == operator to support iOS 10 and higher changes

* Simplify return statement of the LayoutConstraint == operator
2019-04-03 06:28:51 +13:00
Jungwon An ca81e8ece0 Support swift 5.0 (#570)
* Update swift version 5.0

* Remove needless access control

* Fix misused "Available" annotations

* Support @unknown default

* Support swift 5.0 in test code

* Update podspec

* Update travis CI

* Code review by @freak4pc

* Add constraint for Swift version

* Fix build failed
2019-04-03 06:25:22 +13:00
Robert Payne 2f5a5da245 Update version in Podspec 2018-10-23 01:15:28 +13:00
Robert Payne 066be5492b Update Podspec 2018-10-23 00:53:44 +13:00
Robert Payne 477fffae4c Remove Package.swift, SnapKit is not SwiftPM compatible anyways 2018-10-23 00:53:40 +13:00
Robert Payne 8f9aaea272 Remove Swift Version file 2018-10-23 00:52:46 +13:00
Ibrahim Koteish 460a6c524f Update Swift Language version to 4.2 under build settings (#551)
* Update swift language version to 4.2 in build settings

* Update podspec
2018-10-22 04:48:31 -07:00
Shai Mishali 6af44ff4c9 Update project to get rid of Migration Warning (#547) 2018-09-29 02:28:33 -07:00
Robert Payne 0c92c7a9a9 Update podspec 2018-09-18 16:39:42 +12:00
Robert Payne fdcd3da2bb Update podspec 2018-09-18 16:05:09 +12:00
Robert Payne 00ba0b6c8c Merge branch 'develop' of github.com:SnapKit/SnapKit into develop 2018-09-18 15:43:50 +12:00
Robert Payne 7ec06634be Add swift version to podspec 2018-09-18 15:43:30 +12:00
Colin T.A. Gray 15beb52218 Adds 'constraint.isActive = bool' to Constraint (#496)
* delegate identical 'constraint creation' code to 'prepareConstraints'

* adds 'set(isActivated:)' method to call appropriate 'activate/deactivate' based on bool

cleans up about 30 lines of

    if foo { activate }
    else { deactivate }

code in my app

* instead of 'set(isActivated:)', use 'isActive = value'
2018-06-23 23:15:34 +12:00
o( ̄へ ̄)o 163f5369d3 make ConstraintAttributes conform to ExpressibleByIntegerLiteral (#520) 2018-06-23 23:14:50 +12:00
Mauro Vime Castillo 0503c24de8 Swift4.2 (#516) 2018-06-11 15:46:30 +12:00
Linus Unnebäck 01124b9f32 Add Swift Package Manager support (#501) 2018-05-19 16:47:52 +12:00
Benjamin Chrobot 2c8262ef9f Add update(priority: ConstraintPriority) method (#467)
* Add update(priority: ConstraintPriority) method

* Fix copy-paste error
2017-10-13 22:33:36 +13:00
Benjamin Chrobot a07ef8b04c Add support for UILayoutPriority as priority target. (#466)
* Add support for UILayoutPriority as priority target.

* Fixed for tvOS
2017-10-13 22:32:30 +13:00
Robert Payne c0f66e42be Update Swift Version 2017-09-17 15:01:38 +12:00
Robert Payne f0f75a9def Merge branch 'master' of github.com:SnapKit/SnapKit into swift-4
# Conflicts:
#	README.md
#	SnapKit.podspec
#	Source/Constraint.swift
#	Source/ConstraintPriority.swift
#	Source/ConstraintViewDSL.swift
#	Tests/Tests.swift
2017-09-17 14:57:16 +12:00