-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around build issues when this is used as a dev pod
Unfortunately I am still not quite sure what's the root cause: for some reason MMMContainerView and MMMLayoutUtils.inverseGolden could not be found when this pod was included as a development one. Separating them into their own sources seems to fix the problem for now but I guess it's just a symptom of another issue.
- Loading branch information
Showing
10 changed files
with
297 additions
and
283 deletions.
There are no files selected for viewing
File renamed without changes.
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,21 @@ | ||
// | ||
// Starbucks App. | ||
// Copyright (c) 2023 MediaMonks. All rights reserved. | ||
// | ||
|
||
@import UIKit; | ||
|
||
/** | ||
* Auto Layout does not support constraints against groups of items, so this is for the cases a normal UIView is | ||
* typically used as a container for such a group. | ||
* Unlike UIView we have translatesAutoresizingMaskIntoConstraints set to NO already. | ||
* Also `MMMContainerView` does not intercept touches but subviews still do. | ||
*/ | ||
@interface MMMContainerView : UIView | ||
|
||
- (nonnull id)init NS_DESIGNATED_INITIALIZER; | ||
|
||
- (id)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE; | ||
- (id)initWithFrame:(CGRect)frame NS_UNAVAILABLE; | ||
|
||
@end |
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,30 @@ | ||
// | ||
// Starbucks App. | ||
// Copyright (c) 2023 MediaMonks. All rights reserved. | ||
// | ||
|
||
#import "MMMContainerView.h" | ||
|
||
@implementation MMMContainerView | ||
|
||
- (id)init { | ||
|
||
if (self = [super initWithFrame:CGRectZero]) { | ||
self.translatesAutoresizingMaskIntoConstraints = NO; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { | ||
|
||
UIView *view = [super hitTest:point withEvent:event]; | ||
|
||
if (view == self) { | ||
return nil; | ||
} else { | ||
return view; | ||
} | ||
} | ||
|
||
@end |
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.