-
Notifications
You must be signed in to change notification settings - Fork 948
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Catalog] Adding feedback menu option
Adding the "Leave Feedback" menu option to open up the feedback dialog - in the catalog's menu. Note some swift format diff to some swift files. PiperOrigin-RevId: 314925966
- Loading branch information
1 parent
b9e978c
commit ff5e5cf
Showing
11 changed files
with
173 additions
and
36 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
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 |
---|---|---|
|
@@ -14,4 +14,8 @@ | |
|
||
import UIKit | ||
|
||
protocol MDCFeedback { | ||
func showFeedbackDialog() | ||
} | ||
|
||
class MDCCatalogWindow: UIWindow {} |
Binary file not shown.
30 changes: 30 additions & 0 deletions
30
components/private/Icons/icons/ic_feedback/src/MaterialIcons+ic_feedback.h
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 @@ | ||
// Copyright 2020-present the Material Components for iOS authors. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#import "MaterialIcons.h" | ||
|
||
// This file was automatically generated by running ./scripts/sync_icons.sh | ||
// Do not modify directly. | ||
|
||
@interface MDCIcons (ic_feedback) | ||
|
||
/* | ||
Returns the image for the ic_feedback image contained in | ||
MaterialIcons_ic_feedback.bundle. | ||
*/ | ||
+ (nullable UIImage *)imageFor_ic_feedback; | ||
|
||
@end |
33 changes: 33 additions & 0 deletions
33
components/private/Icons/icons/ic_feedback/src/MaterialIcons+ic_feedback.m
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,33 @@ | ||
// Copyright 2020-present the Material Components for iOS authors. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// This file was automatically generated by running ./scripts/sync_icons.sh | ||
// Do not modify directly. | ||
|
||
#import "MaterialIcons+ic_feedback.h" | ||
|
||
static NSString *const kBundleName = @"MaterialIcons_ic_feedback"; | ||
static NSString *const kIconName = @"ic_feedback"; | ||
|
||
// Export a nonsense symbol to suppress a libtool warning when this is linked alone in a static lib. | ||
__attribute__((visibility("default"))) char MDCIconsExportToSuppressLibToolWarning_ic_feedback = 0; | ||
|
||
@implementation MDCIcons (ic_feedback) | ||
|
||
+ (nullable UIImage *)imageFor_ic_feedback { | ||
NSBundle *bundle = [self bundleNamed:kBundleName]; | ||
return [UIImage imageNamed:kIconName inBundle:bundle compatibleWithTraitCollection:nil]; | ||
} | ||
|
||
@end |
6 changes: 6 additions & 0 deletions
6
...ents/private/Icons/icons/ic_feedback/src/MaterialIcons_ic_feedback.xcassets/Contents.json
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,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ons/ic_feedback/src/MaterialIcons_ic_feedback.xcassets/ic_feedback.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "ic_feedback.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "ic_feedback@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "ic_feedback@3x.png", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+135 Bytes
...ack/src/MaterialIcons_ic_feedback.xcassets/ic_feedback.imageset/ic_feedback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+204 Bytes
.../src/MaterialIcons_ic_feedback.xcassets/ic_feedback.imageset/ic_feedback@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+279 Bytes
.../src/MaterialIcons_ic_feedback.xcassets/ic_feedback.imageset/ic_feedback@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.