This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed SnapKit and SwiftIconFont Dependencies
- Loading branch information
Showing
13 changed files
with
184 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
github "SvenTiigi/FlyoverKit" == 1.2.2 | ||
github "SnapKit/SnapKit" == 4.2.0 | ||
github "0x73/SwiftIconFont" == 2.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
github "0x73/SwiftIconFont" "2.9.1" | ||
github "SnapKit/SnapKit" "4.2.0" | ||
github "SvenTiigi/FlyoverKit" "1.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// Anchor.swift | ||
// STLocationRequest | ||
// | ||
// Created by Sven Tiigi on 25.10.18. | ||
// Copyright © 2018 Sven Tiigi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol Anchor { | ||
|
||
var topAnchor: NSLayoutYAxisAnchor { get } | ||
|
||
var bottomAnchor: NSLayoutYAxisAnchor { get } | ||
|
||
var leadingAnchor: NSLayoutXAxisAnchor { get } | ||
|
||
var trailingAnchor: NSLayoutXAxisAnchor { get } | ||
|
||
var widthAnchor: NSLayoutDimension { get } | ||
|
||
var heightAnchor: NSLayoutDimension { get } | ||
|
||
var centerXAnchor: NSLayoutXAxisAnchor { get } | ||
|
||
var centerYAnchor: NSLayoutYAxisAnchor { get } | ||
|
||
} | ||
|
||
extension UIView: Anchor {} | ||
|
||
extension UILayoutGuide: Anchor {} | ||
|
||
extension UIViewController { | ||
|
||
var anchor: Anchor { | ||
if #available(iOS 11.0, *) { | ||
return self.view.safeAreaLayoutGuide | ||
} else { | ||
return self.view | ||
} | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
STLocationRequest/Extensions/NSLayoutConstraint+Activate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// NSLayoutConstraint+Activate.swift | ||
// STLocationRequest | ||
// | ||
// Created by Sven Tiigi on 25.10.18. | ||
// Copyright © 2018 Sven Tiigi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
extension NSLayoutConstraint { | ||
|
||
static func activate(on view: UIView, _ constraints: [NSLayoutConstraint]) { | ||
view.translatesAutoresizingMaskIntoConstraints = false | ||
self.activate(constraints) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.