-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated for Material Components for iOS (MDC-iOS) version 35.2.0
- Loading branch information
Showing
32 changed files
with
232 additions
and
11 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
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
references/MDFTextAccessibility.framework/MDFTextAccessibility
Binary file not shown.
102 changes: 102 additions & 0 deletions
102
references/MaterialComponents.framework/Headers/MDCBottomAppBarView.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,102 @@ | ||
/* | ||
Copyright 2017-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 "MaterialButtons.h" | ||
|
||
/** The elevation of the floating action button. */ | ||
typedef NS_ENUM(NSInteger, MDCBottomAppBarFloatingButtonElevation) { | ||
MDCBottomAppBarFloatingButtonElevationPrimary = 0, | ||
MDCBottomAppBarFloatingButtonElevationSecondary = 1 | ||
}; | ||
|
||
/** The position of the floating action button. */ | ||
typedef NS_ENUM(NSInteger, MDCBottomAppBarFloatingButtonPosition) { | ||
MDCBottomAppBarFloatingButtonPositionCenter = 0, | ||
MDCBottomAppBarFloatingButtonPositionLeading = 1, | ||
MDCBottomAppBarFloatingButtonPositionTrailing = 2 | ||
}; | ||
|
||
/** | ||
A bottom app bar view with an embedded floating button. | ||
The bottom app bar is a bar docked at the bottom of the screen. A floating action button is | ||
provided for a primary action. | ||
*/ | ||
@interface MDCBottomAppBarView : UIView | ||
|
||
/** | ||
Is the floating button on the bottom bar hidden. | ||
Default is NO. | ||
*/ | ||
@property(nonatomic, assign, getter=isFloatingButtonHidden) BOOL floatingButtonHidden; | ||
|
||
/** | ||
The elevation of the floating action button. | ||
Default is MDCBottomAppBarFloatingButtonElevationPrimary. | ||
*/ | ||
@property(nonatomic, assign) MDCBottomAppBarFloatingButtonElevation floatingButtonElevation; | ||
|
||
/** | ||
The position of the floating action button. | ||
Default is MDCBottomAppBarFloatingButtonPositionCenter. | ||
*/ | ||
@property(nonatomic, assign) MDCBottomAppBarFloatingButtonPosition floatingButtonPosition; | ||
|
||
/** | ||
The floating button on the bottom bar. This button is exposed for customizability. | ||
*/ | ||
@property(nonatomic, strong, nonnull, readonly) MDCFloatingButton *floatingButton; | ||
|
||
/** | ||
Navigation bar items that precede the floating action button. There is no limit to the number of | ||
buttons that can be added, but button bar width overflow is not handled. | ||
*/ | ||
@property(nonatomic, copy, nullable) NSArray<UIBarButtonItem *> *leadingBarButtonItems; | ||
|
||
/** | ||
Navigation bar items that trail the floating action button. There is no limit to the number of | ||
buttons that can be added, but button bar width overflow is not handled. | ||
*/ | ||
@property(nonatomic, copy, nullable) NSArray<UIBarButtonItem *> *trailingBarButtonItems; | ||
|
||
/** | ||
Sets the visibility of the floating action button. | ||
@param animated Enable or disable animation. | ||
*/ | ||
- (void)setFloatingButtonHidden:(BOOL)floatingButtonHidden animated:(BOOL)animated; | ||
|
||
/** | ||
Sets the elevation of the floating action button. Note, if the set elevation is the same as the | ||
current elevation there is no change in the elevation nor animation. | ||
@param animated Enable or disable animation. | ||
*/ | ||
- (void)setFloatingButtonElevation:(MDCBottomAppBarFloatingButtonElevation)floatingButtonElevation | ||
animated:(BOOL)animated; | ||
|
||
/** | ||
Sets the position of the floating action button. Note, if the set position is the same as the | ||
current position there is no change in the position nor animation. | ||
@param animated Enable or disable animation. | ||
*/ | ||
- (void)setFloatingButtonPosition:(MDCBottomAppBarFloatingButtonPosition)floatingButtonPosition | ||
animated:(BOOL)animated; | ||
|
||
@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
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
17 changes: 17 additions & 0 deletions
17
references/MaterialComponents.framework/Headers/MaterialBottomAppBar.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,17 @@ | ||
/* | ||
Copyright 2017-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 "MDCBottomAppBarView.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
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
references/MaterialComponents.framework/MaterialIcons_ic_arrow_back.bundle/Info.plist
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
references/MaterialComponents.framework/MaterialIcons_ic_check.bundle/Info.plist
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
references/MaterialComponents.framework/MaterialIcons_ic_check_circle.bundle/Info.plist
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
references/MaterialComponents.framework/MaterialIcons_ic_chevron_right.bundle/Info.plist
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
references/MaterialComponents.framework/MaterialIcons_ic_info.bundle/Info.plist
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...es/MaterialComponents.framework/MaterialIcons_ic_radio_button_unchecked.bundle/Info.plist
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
references/MaterialComponents.framework/MaterialIcons_ic_reorder.bundle/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
references/MotionTransitioning.framework/MotionTransitioning
Binary file not shown.
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
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,75 @@ | ||
// | ||
// Copyright (c) 2017 The Material Components for iOS Xamarin Binding Authors. | ||
// All Rights Reserved. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
// | ||
|
||
using System; | ||
using Foundation; | ||
using CoreGraphics; | ||
using UIKit; | ||
using ObjCRuntime; | ||
using MaterialComponents.MaterialInk; | ||
using MaterialComponents.MaterialButtons; | ||
using MaterialComponents; | ||
|
||
|
||
namespace MaterialComponents.MaterialBottomAppBar { | ||
|
||
// @interface MDCBottomAppBarView : UIView | ||
[BaseType(typeof(UIView))] | ||
interface MDCBottomAppBarView { | ||
// @property (getter = isFloatingButtonHidden, assign, nonatomic) BOOL floatingButtonHidden; | ||
[Export("floatingButtonHidden")] | ||
bool FloatingButtonHidden { [Bind("isFloatingButtonHidden")] get; set; } | ||
|
||
// @property (assign, nonatomic) MDCBottomAppBarFloatingButtonElevation floatingButtonElevation; | ||
[Export("floatingButtonElevation", ArgumentSemantic.Assign)] | ||
MDCBottomAppBarFloatingButtonElevation FloatingButtonElevation { get; set; } | ||
|
||
// @property (assign, nonatomic) MDCBottomAppBarFloatingButtonPosition floatingButtonPosition; | ||
[Export("floatingButtonPosition", ArgumentSemantic.Assign)] | ||
MDCBottomAppBarFloatingButtonPosition FloatingButtonPosition { get; set; } | ||
|
||
// @property (readonly, nonatomic, strong) MDCFloatingButton * _Nonnull floatingButton; | ||
[Export("floatingButton", ArgumentSemantic.Strong)] | ||
MDCFloatingButton FloatingButton { get; } | ||
|
||
// @property (copy, nonatomic) NSArray<UIBarButtonItem *> * _Nullable leadingBarButtonItems; | ||
[NullAllowed, Export("leadingBarButtonItems", ArgumentSemantic.Copy)] | ||
UIBarButtonItem[] LeadingBarButtonItems { get; set; } | ||
|
||
// @property (copy, nonatomic) NSArray<UIBarButtonItem *> * _Nullable trailingBarButtonItems; | ||
[NullAllowed, Export("trailingBarButtonItems", ArgumentSemantic.Copy)] | ||
UIBarButtonItem[] TrailingBarButtonItems { get; set; } | ||
|
||
// -(void)setFloatingButtonHidden:(BOOL)floatingButtonHidden animated:(BOOL)animated; | ||
[Export("setFloatingButtonHidden:animated:")] | ||
void SetFloatingButtonHidden(bool floatingButtonHidden, bool animated); | ||
|
||
// -(void)setFloatingButtonElevation:(MDCBottomAppBarFloatingButtonElevation)floatingButtonElevation animated:(BOOL)animated; | ||
[Export("setFloatingButtonElevation:animated:")] | ||
void SetFloatingButtonElevation(MDCBottomAppBarFloatingButtonElevation floatingButtonElevation, bool animated); | ||
|
||
// -(void)setFloatingButtonPosition:(MDCBottomAppBarFloatingButtonPosition)floatingButtonPosition animated:(BOOL)animated; | ||
[Export("setFloatingButtonPosition:animated:")] | ||
void SetFloatingButtonPosition(MDCBottomAppBarFloatingButtonPosition floatingButtonPosition, bool animated); | ||
} | ||
} |
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