Cupcake
Cupcake copied to clipboard
An easy way to create and layout UI components for iOS (Swift version).
Access to UITextField's _placeholderLabel ivar is prohibited. This is an application bug
With Xcode 12, when set hint to UITextView, the app crashes. *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Access to UITextField's _placeholderLabel ivar is prohibited. This is an...
This happened with Xcode 12.0 and Carthage: *** Building scheme "Cupcake" in Cupcake.xcodeproj Build Failed Task failed with exit code 1: /usr/bin/xcrun lipo -create /Users//Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/Cupcake/1.3.1/Build/Intermediates.noindex/ArchiveIntermediates/Cupcake/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Cupcake.framework/Cupcake /Users//Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/Cupcake/1.3.1/Build/Products/Release-iphonesimulator/Cupcake.framework/Cupcake -output /Users//Desktop//Carthage/Build/iOS/Cupcake.framework/Cupcake
支持一下spm吧
Hstack does not support rtl orientations
比如:button 在disable 状态下的color , img textFiled 的几个style 目前发现的
co-worker found this issue. I do not know what is make this problem exactly. This issue does not appear if remove below code and KVO observes. `UITextView.cpk_swizzle(method1: "dealloc", method2: #selector(UITextView.cpk_deinit))`...
let bgView = View.bg(UIColor.c_mask_b) let contentView = View.bg("white").radius(Specs.metric.cornerRadius).pin(.center) contentView.addTo(bgView).makeCons({ (make) in make.right.equal(bgView).offset(Specs.metric.ratioMargin) make.right.equal(bgView).offset(-Specs.metric.ratioMargin) make.center.equal(bgView) }) var stacks = [Any]() for (index, desc) in descs.enumerated() { var text = "\(index+1)" if...
For the following line `indexLabel = Label.font(17).color("darkGray").align(.center).pin(.w(44))` Xcode throws the following error > Value of type 'UILabel' has no member 'pin'
Hello, I have two label inside HStack and i want to make them fill equally (each label = 50% width of content) How can i do that ? I tried...