Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

  • isnotEmpty
import Foundation

extension String {
    public var isNotEmpty: Bool {
        return !isEmpty
 }

KeyboardObserver.swift

import UIKit

enum KeyboardEventType: CaseIterable {
    case willShow
    case didShow
    case willHide
    case didHide
  • UIButtonにアンダースコア付きの文字を設定して押下時リンクタップの様に見える。
    ※numberOfLinesを0にして複数行の時にも改行されるようになってます。
import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var button: CustomButton!
    let underLineString = "Patient Name "
@KentarouKanno
KentarouKanno / Range.md
Last active July 25, 2019 03:56
Range Description

参考URL: SwiftUI-Flux

  • CounterView.swift
import SwiftUI

struct CounterView : View {