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
extension UIImageView { | |
func topAlignmentAndAspectFit(to view: UIView) { | |
self.contentMode = .scaleAspectFill | |
self.translatesAutoresizingMaskIntoConstraints = false | |
view.addSubview(self) | |
self.addConstraints( | |
[NSLayoutConstraint(item: self, | |
attribute: .height, | |
relatedBy: .equal, |
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
module Fastlane | |
module Actions | |
module SharedValues | |
GIT_CHECKOUT_BRANCH_AND_RESET = :GIT_CHECKOUT_BRANCH_AND_RESET | |
end | |
class GitCheckoutResetHardAction < Action | |
def self.run(params) | |
remote_branch = params[:remote_branch] | |
Actions.sh("git fetch") |
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
// Last active bace on nsdate | |
+ (NSString * __nonnull)sellerLastActiveStringWithSellerLastActivDate:(NSDate * __nullable)sellerLastActive | |
isSellerOnline:(BOOL)isSellerOnline { | |
NSString *timeString = @""; | |
if (sellerLastActive == nil) { | |
//do nothing | |
} | |
else if (isSellerOnline) { | |
timeString = @"Online"; | |
} |