-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance design system and populate home data 🎨 (#103)
* Enhance button styling * Apply new label styling * Ensure styling in label * Enhance styling and appearance * Fix application open url * Fix seconday button style and enhance reuse identifier usages * Fix new relic build errors * Update launch screen image to scale aspect fill * Fix dashboard layout not pushed to the top * Configure view controller and layout * Rename and move the cell * Add new recipes view with proper configurations * Disable blanket disable command --------- Co-authored-by: Mohamed Atallah <100219531+mhmdatallaa@users.noreply.github.com>
- Loading branch information
1 parent
d97a350
commit 5d7b26d
Showing
45 changed files
with
603 additions
and
420 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
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
25 changes: 25 additions & 0 deletions
25
Healthy/Classes/Extensions/NSLayoutConstraint+Helpers.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,25 @@ | ||
import UIKit | ||
|
||
extension NSLayoutDimension { | ||
/// Creates a constraint that sets the dimension's constant value to the provided CGFloat. | ||
/// - Parameter value: The constant value to set for the dimension. | ||
/// - Returns: The created constraint, which is activated automatically. | ||
@discardableResult | ||
func equalTo(_ value: CGFloat) -> NSLayoutConstraint { | ||
let constraint = self.constraint(equalToConstant: value) | ||
constraint.isActive = true | ||
return constraint | ||
} | ||
} | ||
|
||
extension NSLayoutConstraint { | ||
/// Sets the priority of the constraint. | ||
/// - Parameter priority: The UILayoutPriority to set for the constraint. | ||
/// - Returns: The modified constraint, allowing for chaining with other methods. | ||
@discardableResult | ||
func priority(_ priority: UILayoutPriority) -> NSLayoutConstraint { | ||
self.priority = priority | ||
isActive = true | ||
return self | ||
} | ||
} |
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
Oops, something went wrong.