Last active
July 29, 2020 17:42
-
-
Save peteranny/252916247d5a000b7565f7644464023d to your computer and use it in GitHub Desktop.
The app which demonstrates the usage of a framework with assets. https://medium.com/better-programming/ios-build-your-cocoapods-framework-with-an-example-app-from-scratch-fd0f7bdf3f8c?postPublishedType=repub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let label: UILabel = { | |
let label = UILabel() | |
label.frame.origin = CGPoint(x: 100, y: 100) | |
label.text = HelloWorld().hello(to: "World") | |
/* Use your asset */ | |
label.textColor = HelloWorld().helloColor | |
label.sizeToFit() | |
return label | |
}() | |
view.addSubview(label) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment