This file contains hidden or 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
override func viewWillAppear(_ animated: Bool) { | |
super.viewWillAppear(animated) | |
labelTopConstraint.constant = -40 | |
labelUsernameConstraint.constant = -40 | |
usernamePasswordConstraint.constant = -40 | |
passwordButtonConstraint.constant = -40 | |
} | |
override func viewDidAppear(_ animated: Bool) { |
This file contains hidden or 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
let duration = 0.5.tweak("Animation/Duration", min: 0, max: 5) | |
let delay = 0.1.tweak("Animation/Delay", min: 0, max: 1) | |
let damping = CGFloat(0.6.tweak("Animation/Damping", min: 0, max: 1)) | |
let springVelocity = CGFloat(0.0.tweak("Animation/Spring Velocity", min: 0, max: 10)) |
This file contains hidden or 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 | |
class TableViewController: UITableViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell") | |
tableView.rowHeight = UITableViewAutomaticDimension |
This file contains hidden or 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
struct ConverterView: View { | |
private var units = ["J", "MeV", "kWh", "kpm", "kcal", "erg"] | |
@State var input: String = "Input" | |
@State var output: String = "Result" | |
@State private var selectedInputIndex = 0 | |
@State private var selectedOutputIndex = 0 | |
var body: some View { | |
VStack { |
This file contains hidden or 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
{ | |
"basics": { | |
"name": "Dominik Hauser", | |
"label": "iOS developer", | |
"picture": "https://xcode.tips/assets/avatar.png", | |
"email": "[email protected]", | |
"phone": "", | |
"website": "https://dasdom.dev", | |
"summary": "I started iOS development in 2009. Since then I have worked in several companies in Germany. In my spare time I write books about Test-Driven iOS development and having fun with iOS development.\n\nEven though I mostly worked in agencies, I enjoy most working on a product over a long time.", | |
"location": { |
OlderNewer