mirror of
https://github.com/MoveUpwards/Sejima.git
synced 2024-10-05 17:48:58 +03:00
Add set text color on pin code and remove default text color + do some clean
This commit is contained in:
parent
6acd48061c
commit
dd6671aa3a
31
Podfile
31
Podfile
@ -1,31 +0,0 @@
|
||||
source 'https://cdn.cocoapods.org/'
|
||||
|
||||
workspace 'Sejima.xcworkspace'
|
||||
platform :ios, '10.0'
|
||||
|
||||
target 'Sejima' do
|
||||
project 'Sejima/Sejima.xcodeproj'
|
||||
# Comment the next line if you don't want to use dynamic frameworks
|
||||
use_frameworks!
|
||||
|
||||
# Pods for Sejima
|
||||
pod 'Neumann'#, :path => '~/Projects/MoveUpwards/Neumann'
|
||||
end
|
||||
|
||||
target 'SejimaTests' do
|
||||
project 'Sejima/Sejima.xcodeproj'
|
||||
# Comment the next line if you don't want to use dynamic frameworks
|
||||
use_frameworks!
|
||||
|
||||
# Pods for Sejima
|
||||
pod 'Neumann'#, :path => '~/Projects/MoveUpwards/Neumann'
|
||||
end
|
||||
|
||||
target 'Sample' do
|
||||
project 'Sample/Sample.xcodeproj'
|
||||
# Comment the next line if you don't want to use dynamic frameworks
|
||||
use_frameworks!
|
||||
|
||||
# Pods for Sample
|
||||
pod 'Neumann'#, :path => '~/Projects/MoveUpwards/Neumann'
|
||||
end
|
16
Podfile.lock
16
Podfile.lock
@ -1,16 +0,0 @@
|
||||
PODS:
|
||||
- Neumann (1.1.1)
|
||||
|
||||
DEPENDENCIES:
|
||||
- Neumann
|
||||
|
||||
SPEC REPOS:
|
||||
trunk:
|
||||
- Neumann
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
Neumann: d1319141c9c374c3e8a0b0107bbc751e1c4cac6c
|
||||
|
||||
PODFILE CHECKSUM: a3935cb40e7c01d177788faed17b410a043343ff
|
||||
|
||||
COCOAPODS: 1.9.2
|
13
Sejima.xcworkspace/contents.xcworkspacedata
generated
13
Sejima.xcworkspace/contents.xcworkspacedata
generated
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Sejima/Sejima.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:Sample/Sample.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:Pods/Pods.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
@ -83,6 +83,13 @@ open class MUPinCode: MUNibView {
|
||||
}
|
||||
}
|
||||
|
||||
/// Describes the MUPinCode's cell's text color appearance while it shows
|
||||
@IBInspectable open dynamic var cellTextColor: UIColor = .black {
|
||||
didSet {
|
||||
stackView.arrangedSubviews.forEach({ ($0 as? MUPinCodeCell)?.set(textColor: cellTextColor) })
|
||||
}
|
||||
}
|
||||
|
||||
/// Describes the MUPinCode's cell's corner radius appearance while it shows
|
||||
@IBInspectable open dynamic var cellCornerRadius: CGFloat = 10.0 {
|
||||
didSet {
|
||||
|
@ -32,6 +32,13 @@ final internal class MUPinCodeCell: MUNibView {
|
||||
return self
|
||||
}
|
||||
|
||||
/// Set the font of the label
|
||||
@discardableResult
|
||||
internal func set(textColor: UIColor) -> Self {
|
||||
label.textColor = textColor
|
||||
return self
|
||||
}
|
||||
|
||||
/// Set the font of the label
|
||||
@discardableResult
|
||||
internal func set(font: UIFont) -> Self {
|
||||
|
@ -1,11 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
@ -23,10 +21,11 @@
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="II4-6y-9d5">
|
||||
<rect key="frame" x="25" y="28" width="0.0" height="0.0"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<nil key="textColor"/>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="O01-l8-E7w"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="II4-6y-9d5" firstAttribute="centerY" secondItem="O01-l8-E7w" secondAttribute="centerY" id="Al0-GC-0YW"/>
|
||||
@ -35,7 +34,6 @@
|
||||
<nil key="simulatedTopBarMetrics"/>
|
||||
<nil key="simulatedBottomBarMetrics"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<viewLayoutGuide key="safeArea" id="O01-l8-E7w"/>
|
||||
<point key="canvasLocation" x="685" y="-304"/>
|
||||
</view>
|
||||
</objects>
|
||||
|
Loading…
Reference in New Issue
Block a user