Last active
July 29, 2020 17:40
-
-
Save peteranny/2b380ebeeab5cbda7e7c4f0cc7f7e1b8 to your computer and use it in GitHub Desktop.
The app which demonstrates the usage of a framework. https://medium.com/better-programming/ios-build-your-cocoapods-framework-with-an-example-app-from-scratch-fd0f7bdf3f8c
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
import UIKit | |
import HelloWorldSDK | |
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") | |
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