mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
* MDCTabBarViewController - like UITabBarViewController, but uses Material Design's MDCTabBar * MDCTabBarViewController Interface Builder example It's integrated into the Catalog app as a Tab example. Also demonstrates moving the tab bar from the unselected state to the selected state. Note: this reveals a bug with the unselected state that https://github.com/material-components/material-components-ios/pull/1441 fixes. * Copyright date is 2017 for these TabBarViewController files. Fix white space issues. * Add <UITabBarItem *> to local variable in updateTabBarItems * Address Brian Moore's comments: ran clang-format -style=file on these files, Modified tabBar delegate protocol: tabBar:willSelectItem: becomes tabBar:shouldSelectItem: so that MDCTabBarViewController can have a 'shouldSelect' delegate. * comment correction of ViewController to view controller. * Add new API to MDCItemBar in preparation for deprecating willSelect: from the delegate protocol, replacing it with shouldSelect:. Revert changes to comment lines that appear to be a mis-configuration at my end to 80 columns. * Tested more thoroughly, verified that the class still works. * Restore the delegate willSelect method that we intended in favor of shouldSelect: * Simplify private/MDCItemBar's delegate protocol, write MDCTabBar public protocol in terms of it, as Brian asked. * Comment fixes. * Address Brian Moore's May 31 comments. Adjust color of TabBar in Interface builder example. * Update README.md
101 lines
6.7 KiB
XML
101 lines
6.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12118" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="oR6-Dz-GRE">
|
|
<device id="retina4_7" orientation="portrait">
|
|
<adaptation id="fullscreen"/>
|
|
</device>
|
|
<dependencies>
|
|
<deployment identifier="iOS"/>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
|
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
</dependencies>
|
|
<scenes>
|
|
<!--Tab Bar View Controller Interface Builder Example-->
|
|
<scene sceneID="6Ii-8W-wPz">
|
|
<objects>
|
|
<viewController id="oR6-Dz-GRE" customClass="TabBarViewControllerInterfaceBuilderExample" sceneMemberID="viewController">
|
|
<layoutGuides>
|
|
<viewControllerLayoutGuide type="top" id="p4q-kg-ckN"/>
|
|
<viewControllerLayoutGuide type="bottom" id="xEW-jn-ui0"/>
|
|
</layoutGuides>
|
|
<view key="view" contentMode="scaleToFill" id="xVI-gP-gga">
|
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Tap a tab, below." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lbq-he-jBj">
|
|
<rect key="frame" x="83" y="186" width="208" height="33.5"/>
|
|
<fontDescription key="fontDescription" type="system" pointSize="28"/>
|
|
<nil key="textColor"/>
|
|
<nil key="highlightedColor"/>
|
|
</label>
|
|
</subviews>
|
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
|
<constraints>
|
|
<constraint firstItem="lbq-he-jBj" firstAttribute="top" secondItem="p4q-kg-ckN" secondAttribute="bottom" constant="166" id="1tZ-N0-XQe"/>
|
|
<constraint firstItem="lbq-he-jBj" firstAttribute="centerX" secondItem="xVI-gP-gga" secondAttribute="centerX" id="mQk-AC-wln"/>
|
|
</constraints>
|
|
</view>
|
|
</viewController>
|
|
<placeholder placeholderIdentifier="IBFirstResponder" id="eIf-pi-l9p" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
</objects>
|
|
<point key="canvasLocation" x="16.800000000000001" y="-144.3778110944528"/>
|
|
</scene>
|
|
<!--Blue-->
|
|
<scene sceneID="qn5-5O-gF5">
|
|
<objects>
|
|
<viewController storyboardIdentifier="blue" title="Blue" id="Vao-K6-eOv" sceneMemberID="viewController">
|
|
<layoutGuides>
|
|
<viewControllerLayoutGuide type="top" id="EJw-pN-1Sf"/>
|
|
<viewControllerLayoutGuide type="bottom" id="NTY-gD-n8I"/>
|
|
</layoutGuides>
|
|
<view key="view" contentMode="scaleToFill" id="I60-0j-fFx">
|
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<color key="backgroundColor" red="0.039215687659999998" green="0.40000003579999999" blue="0.79607850309999995" alpha="1" colorSpace="deviceRGB"/>
|
|
</view>
|
|
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
|
|
</viewController>
|
|
<placeholder placeholderIdentifier="IBFirstResponder" id="3d9-sl-CkD" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
</objects>
|
|
<point key="canvasLocation" x="1446" y="-474"/>
|
|
</scene>
|
|
<!--Green-->
|
|
<scene sceneID="wap-mt-WDa">
|
|
<objects>
|
|
<viewController storyboardIdentifier="green" title="Green" id="zRr-4g-R6t" sceneMemberID="viewController">
|
|
<layoutGuides>
|
|
<viewControllerLayoutGuide type="top" id="sIh-wA-ouM"/>
|
|
<viewControllerLayoutGuide type="bottom" id="zTH-dn-D6C"/>
|
|
</layoutGuides>
|
|
<view key="view" contentMode="scaleToFill" id="ada-NZ-6V9">
|
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<color key="backgroundColor" red="0.53333333329999999" green="0.78039215689999997" blue="0.25098039220000001" alpha="1" colorSpace="calibratedRGB"/>
|
|
</view>
|
|
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
|
|
</viewController>
|
|
<placeholder placeholderIdentifier="IBFirstResponder" id="10S-UO-9TL" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
</objects>
|
|
<point key="canvasLocation" x="1446" y="241"/>
|
|
</scene>
|
|
<!--Red-->
|
|
<scene sceneID="wac-MV-OkV">
|
|
<objects>
|
|
<viewController storyboardIdentifier="red" title="Red" id="3HE-EE-awO" sceneMemberID="viewController">
|
|
<layoutGuides>
|
|
<viewControllerLayoutGuide type="top" id="kvQ-gt-KtN"/>
|
|
<viewControllerLayoutGuide type="bottom" id="Mre-i5-s1z"/>
|
|
</layoutGuides>
|
|
<view key="view" contentMode="scaleToFill" id="am7-Ek-75B">
|
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<color key="backgroundColor" red="0.66352897879999995" green="0.031058075009999998" blue="0.028557975190000001" alpha="1" colorSpace="calibratedRGB"/>
|
|
</view>
|
|
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
|
|
</viewController>
|
|
<placeholder placeholderIdentifier="IBFirstResponder" id="f7g-qC-cSe" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
</objects>
|
|
<point key="canvasLocation" x="1446" y="940"/>
|
|
</scene>
|
|
</scenes>
|
|
</document>
|