Skip to content

Commit

Permalink
[FIX] TeamDooRiBon#141 - 탭바 높이 수정
Browse files Browse the repository at this point in the history
- 탭바 높이 수정
  • Loading branch information
Taehyeon-Kim committed Jul 16, 2021
1 parent 6a53816 commit 32f0b78
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@
<constraint firstItem="vDu-zF-Fre" firstAttribute="trailing" secondItem="gyK-uK-iJ4" secondAttribute="trailing" id="tQL-Lw-Jkz"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="보드" image="iconBoardInactiveIos" selectedImage="iconBoardActiveIos" id="qOq-cj-B3K">
<inset key="imageInsets" minX="0.0" minY="0.0" maxX="0.0" maxY="-12"/>
</tabBarItem>
<tabBarItem key="tabBarItem" title="보드" image="iconBoardInactiveIos" selectedImage="iconBoardActiveIos" id="qOq-cj-B3K"/>
<navigationItem key="navigationItem" id="6H8-YY-rO3"/>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
<connections>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
<constraint firstItem="5ld-ms-rFm" firstAttribute="leading" secondItem="pKD-2S-Oes" secondAttribute="leading" id="gJV-n6-AA3"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="그룹" image="iconPeopleInactiveIos" selectedImage="iconMembersActive" id="9SQ-1c-JHc">
<inset key="imageInsets" minX="0.0" minY="0.0" maxX="0.0" maxY="-12"/>
</tabBarItem>
<tabBarItem key="tabBarItem" title="그룹" image="iconPeopleInactiveIos" selectedImage="iconMembersActive" id="9SQ-1c-JHc"/>
<navigationItem key="navigationItem" id="jcf-2a-Q0S"/>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
<connections>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@
<constraint firstItem="vDu-zF-Fre" firstAttribute="trailing" secondItem="B9K-oA-KgM" secondAttribute="trailing" id="xU3-EY-P6L"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="일정" image="iconCalendarInactiveIos" selectedImage="iconCalendarActiveIos" id="KWx-Pg-r3U">
<inset key="imageInsets" minX="0.0" minY="0.0" maxX="0.0" maxY="-12"/>
</tabBarItem>
<tabBarItem key="tabBarItem" title="일정" image="iconCalendarInactiveIos" selectedImage="iconCalendarActiveIos" id="KWx-Pg-r3U"/>
<navigationItem key="navigationItem" id="YtJ-y8-o83"/>
<nil key="simulatedTopBarMetrics"/>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
Expand Down
2 changes: 1 addition & 1 deletion DooRiBon/DooRiBon/Sources/Base/TripStoryboard.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<objects>
<tabBarController storyboardIdentifier="TripViewController" automaticallyAdjustsScrollViewInsets="NO" id="S7L-3Y-fNE" customClass="TripViewController" customModule="DooRiBon" customModuleProvider="target" sceneMemberID="viewController">
<toolbarItems/>
<tabBar key="tabBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="NAz-DL-ieH" customClass="CustomTabBar" customModule="DooRiBon" customModuleProvider="target">
<tabBar key="tabBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="NAz-DL-ieH">
<rect key="frame" x="0.0" y="0.0" width="1000" height="1000"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
Expand Down
18 changes: 9 additions & 9 deletions DooRiBon/DooRiBon/Sources/Base/TripViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TripViewController: UITabBarController {
NSAttributedString.Key.font: UIFont.SpoqaHanSansNeo(.regular, size: 12)], for: .selected)

// 타이틀 위치 조정
appearance.titlePositionAdjustment = UIOffset(horizontal: 0, vertical: 8)
// appearance.titlePositionAdjustment = UIOffset(horizontal: 0, vertical: 8)
}
}

Expand All @@ -81,11 +81,11 @@ extension UITabBar {
}
}

// MARK: - TabBar 높이 세팅 위한 클래스
class CustomTabBar : UITabBar {
override open func sizeThatFits(_ size: CGSize) -> CGSize {
var sizeThatFits = super.sizeThatFits(size)
sizeThatFits.height = 82
return sizeThatFits
}
}
//// MARK: - TabBar 높이 세팅 위한 클래스
//class CustomTabBar : UITabBar {
// override open func sizeThatFits(_ size: CGSize) -> CGSize {
// var sizeThatFits = super.sizeThatFits(size)
// sizeThatFits.height = 82
// return sizeThatFits
// }
//}

0 comments on commit 32f0b78

Please sign in to comment.