Skip to content

Instantly share code, notes, and snippets.

View alparslandev's full-sized avatar
🎯
Focusing

Alparslan Selçuk DEVELİOĞLU alparslandev

🎯
Focusing
View GitHub Profile
#!/bin/bash
# taken from blog post: http://www.mokacoding.com/blog/automatic-xcode-versioning-with-git/
# Automatically sets version of target based on most recent tag in git
# Automatically sets build number to number of commits
#
# Add script to build phase in xcode at the top of the chain named "set build number"
# put this script in the root of the xcode project in a directory called scripts (good idea to version control this too)
# call the script as $SRCROOT/scripts/set_build_number_by_git_commits.sh in xcode
@alparslandev
alparslandev / README.md
Created December 12, 2019 07:58 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

//Imperative
val button = Button()
button.text = "click me"
val layout = Layout()
layout.add(button)
// Declerative
Layout {
Button("click me")
}
Button("Button Name", color = Color.Green, onClick = {}) // Compose
Button("Button Name", action: {}).foregroundColor(Color.green) // SwiftUI