SkyFloatingLabelTextField
SkyFloatingLabelTextField copied to clipboard
Crashing when set title programatically
ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. Please remove this line and all above before submitting.
Before you start, are you using the latest SkyFloatingLabelTextField release?
Issues are for feature requests, and bugs; questions should go to Stack Overflow with the tag
skyfloatinglabeltextfield
.
Report
What did you do?
ℹ I download this project by using Carthege. After that I assign a UItextField class name to 'SkyFloatingLabelTextField' in storyboard and reference in ViewController. After that I am going to set title on that textfield and its not working. Though I can set text and change the background color of the textfield.
What did you expect to happen?
ℹ Application should not be crashed at least.
What happened instead?
ℹ Please replace this with of what happened instead.
Environment
ℹ xcode 9.0.1, iOS 11.0
Xcode Version: SkyFloatingLabelTextField Version: Deployment Target: Base SDK: Method of Integration: CocoaPods | Carthage | Manual
Project that demonstrates the issue
ℹ Please link to a project we can download that reproduces the issue if applicable.
Hi, do you have a reproducible example for this you could share?
test.zip Here you have an example, with Xcode 9.3, the app crash when I try to set the title manually.
Thanks, I just realised that I don't have Xcode 9.3 and cannot install it since I'm still on Sierra. What's the error you are seeing?
Bump
@k0nserv
I encounter the same scenario in Xcode 9.4.1.
This is the error I get:
Unknown class SkyFloatingLabelTextField in Interface Builder file.
I installed the library through Carthage.
Another issue that's potentially related is being unable to assign the module under the Custom Class in the Interface Builder.
@remingtonchan You should have to assing the module with Carthage I believe because Carthage imports the project as a framework
@k0nserv
I drag the framework to Linked Frameworks and Libraries.
And I do not encounter an error when I reference an object of the SkyFloatingLabelTextField type.
But for the module under Custom Class in the Interface Builder, nothing shows in the drop down. Manually typing in the module name (SkyFloatingLabelTextField) also yields the same error.
EDIT:
I found out that I also cannot jump to SkyFloatingLabelTextField's definition, encountering this error:
Couldn't Generate Swift Representation:
Error (from SourceKit):
"Connection Interrupted"
EDIT 2:
I ended up copying the files under the Sources folder manually to resolve my issue.